/* Screen-sized layout shared by news, league hubs, scores and video. */
html{scrollbar-gutter:stable}
body{min-width:0}
.wrap{width:calc(100% - clamp(32px,5vw,112px));max-width:none}
main.wrap{min-width:0}
.layout{grid-template-columns:minmax(0,1fr) clamp(260px,20vw,340px)}
.layout>*,#nba-hub,#nba-hub-content,#mlb-hub,#lidom-hub,#stories{min-width:0;max-width:100%}
img,video,iframe{max-width:100%}
.story-copy,.nba-news-copy,.cowboy-clip figcaption{overflow-wrap:anywhere}
/* Preserve the entire photograph or poster in every news frame. */
#stories .hero>img,#stories .card>img,
.nba-editorial-card .nba-news-photo img,
.nba-editorial-card.portrait-news .nba-news-photo img,
.nba-editorial-card.photo-first .nba-news-photo img{
  width:100%;height:clamp(260px,32vw,480px);max-height:none;
  object-fit:contain;aspect-ratio:auto;
}
#stories .hero>img{height:clamp(320px,46vw,640px)}
#stories .nba-branded-news>img{width:calc(100% - 32px)}
#article,#article.nba-branded-article{width:min(1400px,calc(100% - 48px));max-height:92vh;max-height:92svh}
#article #article-copy .article-cover,
#article.full-news-article #article-copy .article-cover{
  display:block;width:100%;max-width:100%;height:auto;max-height:75vh;max-height:75svh;
  object-fit:contain;aspect-ratio:auto;margin-inline:auto;
}
#article-copy{overflow-wrap:anywhere}
#article-copy p{max-width:78ch;margin-inline:auto}
.nba-watch-cover>img{max-width:100%;max-height:75vh;max-height:75svh;object-fit:contain}
.nba-video-card video{height:auto;max-height:75vh;max-height:75svh;object-fit:contain;aspect-ratio:auto}
#cowboy .cowboy-play>img{object-fit:contain}
.standings-table,.cup-table-scroll{max-width:100%;overscroll-behavior-x:contain}
@media(min-width:1600px){
  .cards{grid-template-columns:repeat(3,minmax(0,1fr))}
  .nba-video-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:1024px){
  .layout{grid-template-columns:minmax(0,1fr)}
  aside{padding-top:0}
  .cowboy-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .wrap{width:calc(100% - 28px)}
  main.wrap{padding-top:20px}
  .cards,.nba-video-grid,#cowboy .cowboy-grid{grid-template-columns:minmax(0,1fr)}
  #stories .hero>img,#stories .card>img,
  .nba-editorial-card .nba-news-photo img,
  .nba-editorial-card.portrait-news .nba-news-photo img,
  .nba-editorial-card.photo-first .nba-news-photo img{
    height:auto;max-height:65vh;max-height:65svh;object-fit:contain;
  }
  #article,#article.nba-branded-article{width:calc(100% - 20px);max-height:94vh;max-height:94svh}
  .dialog-body{padding:18px}
  .dialog-body h2{font-size:clamp(1.6rem,7vw,2.2rem);line-height:1.2;overflow-wrap:anywhere}
  .nba-watch-cover>h3{font-size:clamp(1.4rem,6vw,2rem)}
  .nba-tools{flex-wrap:wrap;max-width:100%}
  .nba-tools input,.nba-tools select{max-width:100%;min-width:0;font-size:1rem}
  .cowboy-heading{flex-wrap:wrap}
  #cowboy .cowboy-identity{max-width:100%}
  .cowboy-social{margin-left:0}
}

/* Official league marks remain visible with their descriptions on phones. */
.league-shortcuts .shortcut-symbol{display:flex;align-items:center;justify-content:center;flex:0 0 80px;height:64px;background:transparent!important;border-radius:0}
.league-shortcuts .shortcut-symbol img{display:block;width:100%;height:100%;object-fit:contain}
.league-shortcuts .shortcut-symbol img[src$="nba.png"]{width:30px;height:64px}
.league-shortcuts a>span:nth-child(2){min-width:0}
@media(max-width:600px){
 .home-news .league-shortcuts{grid-template-columns:minmax(0,1fr);gap:10px}
 .home-news .league-shortcuts a{justify-content:flex-start;gap:16px;text-align:left;padding:14px 18px}
 .league-shortcuts .shortcut-symbol{display:flex;flex-basis:72px;height:56px}
 .league-shortcuts .shortcut-symbol img[src$="nba.png"]{width:25px;height:56px}
 .league-shortcuts small{display:block;font-size:.875rem;line-height:1.4}
}

#nba-game,#baseball-game{width:min(1400px,calc(100% - 28px));max-height:92vh;max-height:92svh}
.game-refresh{margin:0 0 20px;min-height:44px}
.game-extra-info,.game-all-plays{margin:24px 0;padding:16px;border:1px solid var(--line);border-radius:10px}
.game-extra-info summary,.game-all-plays summary{cursor:pointer;font-size:1rem;font-weight:700;padding:8px 0}
.game-extra-info dl>div{display:grid;grid-template-columns:minmax(100px,1fr) 2fr;gap:16px;padding:10px 0;border-bottom:1px solid var(--line)}
.game-extra-info dt{font-weight:700}.game-extra-info dd{margin:0}
@media(max-width:600px){#nba-game,#baseball-game{width:calc(100% - 16px)}.game-extra-info dl>div{grid-template-columns:1fr;gap:6px}}

/* About content belongs exclusively to its menu route. */
#nosotros[hidden]{display:none}
body:not(.about-view) #nosotros{display:none}

/* News covers show only the image and linked title; details remain in the article. */
.clean-news-card{display:block;min-width:0;background:var(--panel,#fff);color:var(--ink,#122444);border:1px solid var(--line,#dce3ee);border-radius:12px;overflow:hidden;box-shadow:0 4px 18px #10244708}
.clean-news-image{display:block;background:#050917;line-height:0}
.clean-news-image img{display:block;width:100%;height:300px;max-height:300px;object-fit:contain;margin:0;border-radius:0}
.clean-news-copy{padding:20px 22px}
.clean-news-copy :is(h2,h3){margin:0;color:var(--ink,#122444);font-size:clamp(1.3rem,2.1vw,1.8rem);line-height:1.25;overflow-wrap:anywhere}
.clean-news-copy a{color:inherit;text-decoration:none}
.clean-news-copy a:hover{text-decoration:underline}
.clean-news-card a:focus-visible{outline:3px solid var(--accent,#0753b4);outline-offset:-3px}
.clean-news-card img[src$="jaden-mcdaniels-on-fire-clean-20261127.jpg"],#article img[src$="jaden-mcdaniels-on-fire-clean-20261127.jpg"]{clip-path:inset(0 0 1% 0)}
@media(max-width:600px){.clean-news-image img{height:260px;max-height:260px}.clean-news-copy{padding:16px}.clean-news-copy :is(h2,h3){font-size:1.4rem}}

/* Standard filled news frames; full articles keep their natural image proportions. */
.clean-news-image{position:relative;aspect-ratio:16/10;overflow:hidden;background:transparent}
.clean-news-image img{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:cover;object-position:center 5%;border-radius:0}
.clean-news-card img[src$="jaden-mcdaniels-on-fire-clean-20261127.jpg"]{clip-path:none}
#stories .hero>img,#stories .card>img,.nba-editorial-card .nba-news-photo img{width:100%;height:auto;max-height:none;aspect-ratio:16/10;object-fit:cover;object-position:center 5%}
#article #article-copy .article-cover,#article.full-news-article #article-copy .article-cover{display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;background:transparent;margin:0}
@media(max-width:600px){.clean-news-image img{height:100%;max-height:none}.clean-news-copy{padding:16px}}

/* Shared official Stars background for every news card, without badges or extra text. */
.clean-news-card{background:#020926 url('assets/stars-fondo-noticias-oficial.png') center/cover no-repeat;color:#fff}
.clean-news-copy{background:linear-gradient(90deg,#020617b8,#020b3a80)}
.clean-news-copy :is(h2,h3){color:#fff}

/* NBA retains its existing photography and layout on the exact official backdrop. */
.clean-news-card.nba-official-background,
#article.nba-branded-article{
 background:#020619 url('assets/stars-fondo-noticias-oficial.png') center top/cover no-repeat;
}
.nba-official-background .clean-news-image{
 background:url('assets/stars-fondo-noticias-oficial.png') center/cover no-repeat;
 box-sizing:border-box;border:8px solid transparent;
}
.nba-official-background .clean-news-copy{background:transparent}
#article.nba-branded-article .dialog-body{background:#02061980}

.lidom-watch{margin:18px 0;min-height:44px}
#lidom-watch-dialog{box-sizing:border-box;width:min(1100px,calc(100% - 20px));max-height:94svh;overflow:auto;padding:clamp(18px,3vw,30px);border:1px solid #294a7e;border-radius:16px;background:#020619 url('assets/stars-fondo-noticias-oficial.png') center/cover;color:white}
#lidom-watch-dialog::backdrop{background:#000c}
#lidom-watch-dialog h2{color:#fff;padding-right:35px}
#lidom-watch-dialog a{color:#bcd9ff}
.lidom-video-frame{position:relative;width:100%;aspect-ratio:16/9;background:#000}
.lidom-video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.lidom-video-links{font-size:1rem;line-height:1.6;margin-top:16px}
