/* Mobile-first presentation for the match hub. Desktop remains untouched. */
@media (max-width:700px){
  .match-page{
    --match-ink:#302925;
    --match-mint:#dff1eb;
    --match-coral:#eb6846;
    --match-cream:#fffaf5;
    background:
      radial-gradient(circle at 95% 9%,rgba(117,200,182,.20),transparent 30%),
      radial-gradient(circle at 4% 35%,rgba(235,104,70,.10),transparent 26%),
      #fbf8f4;
    padding-bottom:calc(92px + env(safe-area-inset-bottom));
  }

  .match-page header{
    padding:12px 16px 8px;
    border-bottom:0;
    gap:10px;
  }

  .match-page header>.brand{
    gap:9px;
    padding-right:0;
    margin:0;
  }

  .match-page header>.brand .brand-logo{
    width:62px;
    height:62px;
    filter:drop-shadow(0 8px 16px rgba(53,45,40,.10));
  }

  .match-page header>.brand span{
    font-size:11px;
    color:#66584c;
  }

  .match-page header nav{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    align-items:stretch;
    overflow:visible;
    gap:3px;
    padding:7px 6px calc(7px + env(safe-area-inset-bottom));
    background:rgba(255,252,248,.94);
    border-top:1px solid rgba(99,82,68,.12);
    box-shadow:0 -12px 32px rgba(53,45,40,.10);
  }

  .match-page header nav a{
    min-width:0;
    min-height:48px;
    padding:7px 3px !important;
    border-radius:14px;
    justify-content:center;
    text-align:center;
    white-space:normal;
    font-size:10.5px;
    line-height:1.35;
    color:#66584c;
  }

  .match-page header nav a[href="/match"]{
    background:linear-gradient(145deg,#d9eee7,#edf6f2);
    color:#7e321f;
    font-weight:900;
    box-shadow:inset 0 0 0 1px rgba(117,200,182,.34);
  }

  .match-page header nav a[href="/calendar"],
  .match-page header nav a[href="/calendar/"],
  .match-page .nav-match-short{
    display:none !important;
  }

  .match-page .nav-match-full{
    display:inline !important;
  }

  .match-page main{
    width:100%;
    margin:0 auto 42px;
    padding:0 14px;
    overflow:clip;
  }

  .match-page .match-hub-hero{
    display:flex;
    flex-direction:column;
    gap:0;
    margin:4px 0 20px;
  }

  .match-page .match-hub-copy{
    min-height:0;
    padding:28px 20px 42px;
    border:0;
    border-radius:30px;
    background:
      radial-gradient(circle at 15% 16%,rgba(235,104,70,.18) 0 8%,transparent 8.5%),
      radial-gradient(circle at 13% 18%,transparent 0 14%,rgba(235,104,70,.12) 14.5% 15%,transparent 15.5%),
      linear-gradient(145deg,#def0ea 0%,#fffaf5 54%,#f7ddd3 100%);
    box-shadow:0 18px 45px rgba(53,45,40,.10);
    isolation:isolate;
  }

  .match-page .match-hub-copy:before{
    content:"";
    position:absolute;
    width:112px;
    height:112px;
    left:-38px;
    top:-42px;
    border:22px solid rgba(255,255,255,.44);
    border-radius:50%;
    z-index:-1;
  }

  .match-page .match-hub-copy:after{
    left:10px;
    bottom:-52px;
    font-size:150px;
    color:rgba(117,200,182,.16);
    z-index:-1;
  }

  .match-page .match-hub-copy .match-eyebrow{
    display:inline-flex;
    width:max-content;
    padding:5px 10px;
    border:1px solid rgba(53,45,40,.08);
    border-radius:999px;
    background:rgba(255,255,255,.62);
    color:#6e5548;
    font-size:10.5px;
  }

  .match-page .match-hub-copy h1{
    max-width:320px;
    margin:14px 0 10px;
    font-size:clamp(34px,10vw,43px);
    line-height:1.28;
    letter-spacing:-.8px;
    color:var(--match-ink);
  }

  .match-page .match-hub-copy p{
    margin:0;
    color:#5e5148;
    font-size:14px;
    line-height:1.95;
  }

  .match-page .match-hero-actions{
    display:grid;
    grid-template-columns:1.15fr .85fr;
    gap:9px;
    margin-top:20px;
  }

  .match-page .match-hero-actions .button,
  .match-page .match-hero-actions button{
    min-height:48px;
    padding:10px 11px;
    border-radius:15px;
    font-size:12px;
    text-align:center;
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .match-page .match-hero-actions .primary,
  .match-page .match-hero-actions button.primary{
    border-color:var(--match-coral);
    background:var(--match-coral);
    color:#2f2824;
    box-shadow:0 10px 24px rgba(235,104,70,.22);
  }

  .match-page .my-match-card{
    position:relative;
    z-index:2;
    margin:-22px 13px 0;
    padding:18px;
    gap:10px;
    border:1px solid rgba(53,45,40,.08);
    border-radius:24px;
    background:rgba(255,255,255,.94);
    box-shadow:0 18px 34px rgba(53,45,40,.12);
    backdrop-filter:blur(12px);
  }

  .match-page .my-match-label{
    font-size:10px;
    letter-spacing:.2px;
  }

  .match-page .my-match-row{
    gap:11px;
  }

  .match-page .my-match-row strong{
    font-size:18px;
  }

  .match-page .my-match-card p{
    margin:0;
    font-size:12.5px;
    line-height:1.8;
  }

  .match-page .match-empty-avatar,
  .match-page .my-match-card .match-avatar{
    width:58px;
    height:58px;
    border-radius:19px;
    font-size:27px;
  }

  .match-page .my-match-card .button,
  .match-page .my-match-card button{
    min-height:45px;
    border-radius:14px;
  }

  .match-page .match-video-showcase{
    display:flex;
    flex-direction:column-reverse;
    gap:0;
    margin:24px 0 26px;
    padding:10px;
    border-radius:28px;
    background:
      radial-gradient(circle at 90% 10%,rgba(117,200,182,.18),transparent 34%),
      linear-gradient(145deg,#101518,#20282d);
    box-shadow:0 22px 45px rgba(18,23,27,.22);
  }

  .match-page .match-video-frame{
    width:100%;
    border-radius:21px;
    border-color:rgba(255,255,255,.10);
  }

  .match-page .match-video-copy{
    padding:18px 12px 14px;
  }

  .match-page .match-video-copy .match-eyebrow{
    font-size:10px;
    color:#8ad1c1;
  }

  .match-page .match-video-copy h2{
    margin:6px 0 7px;
    font-size:27px;
    line-height:1.45;
  }

  .match-page .match-video-copy p{
    font-size:12.5px;
    line-height:1.85;
  }

  .match-page .match-video-toggle{
    left:10px;
    bottom:10px;
    min-width:62px;
    min-height:38px;
    padding:7px 12px;
    font-size:11px;
  }

  .match-page .match-tabs{
    display:flex;
    gap:5px;
    margin:0 0 22px;
    padding:5px;
    overflow-x:auto;
    border:1px solid rgba(53,45,40,.08);
    border-radius:18px;
    background:rgba(255,255,255,.84);
    box-shadow:0 8px 24px rgba(53,45,40,.06);
    scrollbar-width:none;
  }

  .match-page .match-tabs::-webkit-scrollbar{
    display:none;
  }

  .match-page .match-tabs a,
  .match-page .match-tabs button{
    flex:0 0 auto;
    min-height:40px;
    margin:0;
    padding:8px 12px;
    border-radius:13px;
    font-size:11px;
  }

  .match-page .match-tabs a.active{
    background:var(--match-ink);
    color:#fff;
    box-shadow:0 8px 18px rgba(48,41,37,.18);
  }

  .match-page .match-section-head,
  .match-page .section-head.compact{
    display:block;
    margin:0 2px 14px;
  }

  .match-page .match-section-head .match-eyebrow{
    display:inline-flex;
    margin-bottom:4px;
    color:#8c523e;
    font-size:10.5px;
  }

  .match-page .match-section-head h2,
  .match-page .section-head.compact h2{
    margin:0;
    font-size:25px;
    line-height:1.45;
  }

  .match-page .match-section-head small,
  .match-page .section-head.compact small{
    display:block;
    margin-top:5px;
    font-size:11px;
    color:#76695f;
  }

  .match-page .match-filters{
    display:flex;
    gap:8px;
    margin:0 -14px 18px;
    padding:2px 14px 10px;
    overflow-x:auto;
    border:0;
    border-radius:0;
    background:transparent;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
  }

  .match-page .match-filters::-webkit-scrollbar{
    display:none;
  }

  .match-page .match-filters label{
    flex:0 0 138px;
    scroll-snap-align:start;
    gap:3px;
    padding:9px 11px;
    border:1px solid rgba(53,45,40,.09);
    border-radius:16px;
    background:#fff;
    box-shadow:0 8px 18px rgba(53,45,40,.05);
    color:#786b61;
    font-size:9.5px;
  }

  .match-page .match-filters select{
    width:100%;
    min-height:35px;
    padding:3px 0;
    border:0;
    background:transparent;
    color:var(--match-ink);
    font-size:16px;
  }

  .match-page .match-filters button{
    flex:0 0 auto;
    align-self:stretch;
    min-width:86px;
    min-height:60px;
    padding:9px 12px;
    border-radius:16px;
    background:#efe9e3;
    font-size:10.5px;
  }

  .match-page .match-people-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:13px;
  }

  .match-page .match-person-card{
    min-height:0;
    padding:17px;
    border:1px solid rgba(53,45,40,.07);
    border-radius:24px;
    background:linear-gradient(155deg,#fff 0%,#fffbf7 100%);
    box-shadow:0 12px 28px rgba(53,45,40,.07);
  }

  .match-page .match-person-card:nth-child(3n+2){
    background:linear-gradient(155deg,#fff 0%,#f2f8f5 100%);
  }

  .match-page .match-person-card:nth-child(3n){
    background:linear-gradient(155deg,#fff 0%,#fff5f1 100%);
  }

  .match-page .match-person-main{
    gap:12px;
  }

  .match-page .match-person-main .match-avatar{
    width:58px;
    height:58px;
    border-radius:19px;
    font-size:24px;
  }

  .match-page .match-person-title-row h3{
    font-size:20px;
  }

  .match-page .sample-badge{
    display:none;
  }

  .match-page .match-meta{
    margin:1px 0 6px;
    font-size:10.5px;
  }

  .match-page .match-person-bio{
    margin:0 0 9px;
    font-size:12px;
    line-height:1.8;
    -webkit-line-clamp:2;
  }

  .match-page .match-chip-row{
    gap:5px;
  }

  .match-page .match-chip-row span{
    padding:4px 8px;
    background:rgba(234,222,210,.56);
    font-size:9.5px;
  }

  .match-page .match-person-footer{
    gap:8px;
    padding-top:12px;
  }

  .match-page .match-score-button{
    padding:8px 10px;
    border-radius:12px;
  }

  .match-page .match-request-panel,
  .match-page .match-profile-required{
    padding:19px;
    border-radius:24px;
  }

  .match-page .match-modal{
    width:calc(100% - 16px);
    max-height:88vh;
    margin:auto 8px 8px;
    border-radius:26px 26px 18px 18px;
  }

  .match-page footer{
    padding:26px 20px 30px;
  }
}

@media (max-width:380px){
  .match-page header nav a{font-size:9.5px}
  .match-page .match-hub-copy{padding-inline:17px}
  .match-page .match-hub-copy h1{font-size:33px}
  .match-page .match-hero-actions{grid-template-columns:1fr}
}

@media (prefers-reduced-motion:reduce){
  .match-page .match-person-card,
  .match-page .match-hub-copy,
  .match-page .match-video-showcase{transition:none !important}
}
