/* VH MOBILE v1 - phone layout clean-up (≤760px only; desktop untouched).
 * Compact 3-row header (logo + icons / scrollable menu / search), list-style match cards, tidier source rows. */
@media (max-width:760px){
  /* ---------- header ---------- */
  .top .topinner{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto auto;grid-template-areas:"brand score country app" "nav nav nav nav" "search search search search";align-items:center;gap:8px 6px;padding:8px 0 10px!important;min-height:0!important;height:auto!important}
  .top .brand{grid-area:brand;font-size:clamp(12px,3.8vw,15px)!important;min-width:0;display:flex;align-items:center;gap:7px;overflow:hidden}
  .top .brand svg{width:24px;height:24px;flex:none}
  .top .brand b{white-space:nowrap}
  /* menu: every item visible, equal-width chips that wrap onto a 2nd row (no sideways scrolling) */
  .top nav{grid-area:nav;order:0!important;width:auto!important;display:grid!important;grid-template-columns:repeat(auto-fill,minmax(98px,1fr));gap:6px!important;margin:0;padding:0;overflow:visible}
  .top nav a{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;height:34px;padding:0 8px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.09);font-size:13.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#d5ddea}
  .top nav a [data-vh-my-label]{display:inline!important}
  .top nav a.vh-nav-active{background:#e03b3b;border-color:#e03b3b;color:#fff}
  .top nav a.vh-nav-active [data-vh-my-count]{background:#fff;color:#e03b3b}
  .top .vh-global-search{grid-area:search;width:auto!important;margin:0!important;height:42px}
  .top .vh-global-search input{font-size:16px} /* 16px = no iOS zoom on focus */
  .top #vh-score-toggle{grid-area:score;width:38px;height:38px;padding:0!important;font-size:0!important;border-radius:10px;background:#1a2d41 center/20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8f2fe' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")}
  .top #vh-score-toggle[aria-pressed="false"]{background-color:#e03b3b;border-color:#e03b3b;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18'/%3E%3Cpath d='M10.6 5.1A10 10 0 0 1 12 5c6.4 0 10 7 10 7a17 17 0 0 1-3.2 4.1M6.6 6.6C3.9 8.4 2 12 2 12s3.6 7 10 7a9.7 9.7 0 0 0 5.4-1.6'/%3E%3Cpath d='M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E")}
  .top .vh-country-trigger{grid-area:country;height:38px;width:44px;padding:0!important;justify-content:center;gap:0;min-width:0;max-width:none!important;border-radius:10px;font-size:0!important}
  .top .vh-country-trigger .vh-selected-name{display:none!important}
  .top .vh-app-top{grid-area:app;height:38px!important;padding:0 9px!important;font-size:13px!important;gap:4px!important}
  .top .country-label{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .top .vh-app-link{display:none!important}

  /* ---------- match cards: compact list rows (thumbnail + text) ---------- */
  .vh-cover-grid{grid-template-columns:1fr!important;gap:10px!important}
  .vh-cover-card{display:grid!important;grid-template-columns:136px minmax(0,1fr);align-items:stretch;border-radius:14px!important;overflow:hidden;min-height:0!important}
  .vh-cover-card .vh-cover-link{display:block;height:100%}
  .vh-cover-card .vh-cover-media{display:block;position:relative;height:100%;min-height:84px;aspect-ratio:auto!important;border-radius:0!important}
  .vh-cover-card .vh-cover-media img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover}
  .vh-cover-card .vh-cover-play{width:30px!important;height:30px!important;font-size:12px!important;line-height:30px!important}
  .vh-cover-card .vh-duration-badge{font-size:10.5px!important;padding:2px 5px!important;right:5px!important;bottom:5px!important}
  .vh-cover-card .vh-cover-content{padding:9px 11px 9px!important;display:flex;flex-direction:column;gap:3px;min-width:0}
  .vh-cover-card .vh-cover-meta{font-size:10.5px!important;gap:6px;margin:0!important}
  .vh-cover-card .vh-cover-meta span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .vh-cover-card h3{font-size:14.5px!important;line-height:1.25!important;margin:0!important}
  .vh-cover-card h3 a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .vh-cover-card .vh-cover-score{margin:0!important} /* never touch font-size: the spoiler toggle relies on it */
  .vh-cover-card .vh-cover-bottom{margin-top:auto!important;padding:0!important;border:0!important}
  .vh-cover-card .vh-cover-date{font-size:10.5px!important}
  .vh-cover-card .vh-watch-button{display:none!important}

  /* ---------- match page ---------- */
  .vh-match-follow{flex-wrap:nowrap!important;gap:6px!important}
  .vh-match-follow .vh-follow{flex:1 1 0;min-width:0;display:block!important;height:32px;line-height:30px;padding:0 10px;font-size:12.5px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .vh-source-item .vh-source-main{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px!important}
  .vh-source-item .vh-source-publisher{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  .vh-source-item .vh-source-duration{font-size:12px;padding:2px 7px;border-radius:999px;background:rgba(255,255,255,.08);white-space:nowrap}
  .match-hero h1,.vh-match-seo-h1{font-size:25px!important;line-height:1.15!important}
  .twocol{gap:16px!important}

  .team-page-head{gap:12px!important;align-items:flex-start!important}
  .team-page-head>.team-badge{width:56px!important;height:56px!important;flex:none}
  .team-page-head h1{font-size:24px!important;line-height:1.15!important}
  .team-page-head .lead{font-size:14px!important}

  /* ---------- home hero + day chips ---------- */
  .hero-home{padding:16px 16px 14px!important;margin:12px 0 14px!important;gap:0!important;min-height:0!important}
  .hero-home h1{font-size:24px!important;line-height:1.15!important;margin:4px 0 6px!important}
  .hero-home .hero-copy>p:not(.eyebrow){font-size:13.5px!important;line-height:1.45!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 12px!important}
  .hero-home .hero-side{display:none!important}
  .hero-home .hero-actions .btn{min-height:40px;padding:9px 16px!important;font-size:14px!important}
  .vh-date-strip{margin:0 0 6px!important}
  .vh-date-strip>span{display:none}
  .vh-date-nav{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(98px,1fr));gap:6px!important;margin:0;padding:0}
  .vh-date-nav a{display:flex;align-items:center;justify-content:center;white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}
}
@media (max-width:380px){
  .top .brand b{font-size:14px}
  .vh-cover-card{grid-template-columns:118px minmax(0,1fr)}
}

/* VH LANG JA KO TR v1: CJK font stacks (the brand font has no Japanese/Korean glyphs). */
html:lang(ja) body,html:lang(ja) input,html:lang(ja) button{font-family:"Google Sans Flex","Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic UI","Yu Gothic","Meiryo",system-ui,sans-serif}
html:lang(ko) body,html:lang(ko) input,html:lang(ko) button{font-family:"Google Sans Flex","Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",system-ui,sans-serif;word-break:keep-all}
html:lang(ja) h1,html:lang(ja) h2,html:lang(ko) h1,html:lang(ko) h2{letter-spacing:0}
