/* Homepage section styles, one block per section type (Tasks 13–17). */

/* Player: the homepage hero, the watch and stream pages (the hero itself is in home.css) */
.player { position: relative; margin-inline: calc(var(--gutter) * -1); aspect-ratio: 16 / 9; overflow: hidden; background: #05070B; }
.player__poster { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.player__badges { position: absolute; left: var(--space-3); top: var(--space-3); display: flex; gap: var(--space-2); }
.player__play { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: 0; border-radius: 50%; background: var(--color-primary); color: var(--color-on-primary); }
.player__message { position: absolute; left: var(--space-3); right: var(--space-3); bottom: var(--space-3); padding: var(--space-3); border-radius: var(--radius-md); background: rgb(0 0 0 / 0.75); font-weight: 600; text-align: center; }
.player__wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-4); background: rgb(0 0 0 / 0.45); text-align: center; }
.player__wait strong + span { color: var(--color-text-soft); font-size: 13px; }
.player__spinner { width: 40px; height: 40px; border: 4px solid rgb(255 255 255 / 0.25); border-top-color: var(--color-primary); border-radius: 50%; animation: player-spin 1s linear infinite; }
@keyframes player-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .player__spinner { animation: none; } }
.player__host { position: absolute; left: var(--space-3); bottom: var(--space-3); }
.player__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: var(--space-6); color: var(--color-muted); text-align: center; }
.live-card { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); }
.live-card:hover { border-color: var(--color-primary); color: inherit; }
.live-card .media { width: 92px; flex-shrink: 0; border-radius: var(--radius-sm); }
.live-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.live-card__comp { color: var(--color-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.live-card__match { font-weight: 700; font-size: 15px; }
/* Stale-data note: the homepage live list and the watch pages' side list. */
.live-list__stale { color: var(--color-muted); font-size: 12px; }
[aria-busy="true"] { opacity: 0.6; transition: opacity 0.2s; }

@media (min-width: 640px) {
    .player { margin-inline: 0; border-radius: var(--radius-lg); }
}

@media (min-width: 1024px) {
    .player__play { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
}

/* Schedule */
.schedule__pills { margin-bottom: var(--space-6); }
.schedule__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-4); margin-bottom: var(--space-4); }
.schedule__date { margin-top: var(--space-1); color: var(--color-muted); font-size: 14px; }
.day-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.day-nav__form { display: flex; gap: var(--space-2); }
.day-nav__form input { min-height: 44px; padding: 0 var(--space-3); background: transparent; border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); }
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.match-card { display: flex; flex-direction: column; gap: var(--space-3); height: 100%; padding: var(--space-4); }
.match-card__top { display: flex; justify-content: space-between; gap: var(--space-2); font-size: 13px; }
.match-card__comp { color: var(--color-muted); font-weight: 600; }
.match-card__status { font-weight: 700; }
.match-card__team { display: flex; align-items: center; gap: var(--space-3); font-weight: 600; }
.match-card__name { flex: 1; }
.match-card__teams { display: grid; gap: var(--space-3); }
.match-card__score { font-weight: 700; }
.match-card__action { margin-top: auto; }
.schedule__more { display: flex; justify-content: center; margin-top: var(--space-5); }

@media (min-width: 1024px) {
    .day-nav { margin-left: auto; }
    .match-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Berita */
.news { display: grid; gap: var(--space-6); }
.news-feature { display: flex; flex-direction: column; gap: var(--space-2); }
.news-feature:hover .news-feature__title { color: var(--color-primary); }
.news-feature__title { font: 700 26px/1.12 var(--font-head); text-transform: uppercase; }
.news-feature__excerpt { color: var(--color-muted); font-size: 15px; line-height: 1.5; }
.news-list { margin: 0; padding: 0; list-style: none; }
.news-item { display: flex; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
.news-item .media { width: 120px; flex-shrink: 0; border-radius: var(--radius-sm); }
.news-item__body { display: flex; flex-direction: column; gap: var(--space-1); }
.news-item__title { font-weight: 700; font-size: 15px; line-height: 1.3; }

@media (min-width: 1024px) {
    .news { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-7); }
    .news-feature__title { font-size: 28px; }
}

/* Klasemen & statistik panels */
.league-switch, .panel .section-head > .meta { margin-left: auto; }
.league-switch > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); font-weight: 600; font-size: 13px; }
.stat-player { display: inline-flex; flex-direction: column; line-height: 1.25; }
.stat-player__name { font-weight: 600; }
.panel__more { display: flex; align-items: center; justify-content: center; min-height: 44px; }

/* Highlight carousel */
.carousel__nav { display: flex; gap: var(--space-2); }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 80%); gap: var(--space-4); margin: 0; padding: 0 0 var(--space-2); overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item { scroll-snap-align: start; }
.video-card { display: flex; flex-direction: column; gap: 6px; }
.video-card .media > .icon { color: #FFFFFF; }
.video-card__title { font-weight: 700; font-size: 15px; line-height: 1.3; }

/* Jelajahi Liga */
.league-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.league-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.league-card:hover { border-color: var(--color-primary); color: inherit; }
.league-card__logo { display: flex; align-items: center; justify-content: center; height: 96px; background: var(--color-surface-2); }
.league-card__logo span { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 2px solid var(--color-border-strong); border-radius: 50%; background: var(--color-bg); font: 700 17px var(--font-head); }
.league-card__body { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3); }
.league-card__name { font-weight: 700; }

/* Teks (SEO copy) */
.teks__title { font-size: 26px; line-height: 1.15; }
.prose { margin-top: var(--space-3); color: var(--color-text-soft); font-size: 15px; line-height: 1.65; }
.prose > * + * { margin-top: var(--space-3); }
.prose h2, .prose h3 { margin-top: var(--space-5); color: var(--color-text); font-family: var(--font-body); font-size: 17px; letter-spacing: 0; text-transform: none; }
.prose a { color: var(--color-primary); text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose blockquote { margin: 0; padding-left: var(--space-4); border-left: 3px solid var(--color-primary); }

/* FAQ */
.faq__title { margin-bottom: var(--space-4); }

/* Row container (M2 spec §4.3) */
.row { display: grid; gap: var(--space-12); margin-top: var(--space-12); }
.row__slot > .section { margin-top: 0; }

@media (min-width: 640px) {
    .carousel__track { grid-auto-columns: calc((100% - var(--space-4) * 2) / 3); }
}

@media (min-width: 1024px) {
    .carousel__track { grid-auto-columns: calc((100% - var(--space-4) * 4) / 5); }
    .league-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .row { margin-top: var(--space-14); gap: var(--space-8); }
    .row--wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
    .row--half { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-14); }
    .row--single { grid-template-columns: minmax(0, 1fr); }
}
.league-card__logo img { width: 56px; height: 56px; object-fit: contain; }
/* Schedule: grouped (league hub) and round */
.dot-live { width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--color-accent); }
.fixtures__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); margin: var(--space-6) 0 var(--space-4); }
.fixtures__title { font-size: 24px; }
.fixture-group + .fixture-group { margin-top: var(--space-4); }
.fixture-group__head { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--color-border); font-weight: 700; }
.fixture-group__more { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; color: var(--color-primary); font-size: 13px; }
.fixture-list, .round-list { margin: 0; padding: 0; list-style: none; }
.fixture { display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--color-border); }
.fixture:first-child { border-top: 0; }
.fixture__when { font-size: 13px; font-weight: 700; }
.fixture__teams, .round-list__item { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-3); font-weight: 700; }
.fixture__team { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.fixture__team--home { justify-content: flex-end; text-align: right; }
.fixture__name { overflow-wrap: anywhere; }
.fixture__title { grid-column: 1 / -1; }
.fixture__action .btn { width: 100%; }
.fixtures__more { display: flex; justify-content: center; margin-top: var(--space-5); }
.round-list__item { padding: var(--space-3) 0; border-top: 1px solid var(--color-border); font-size: 14px; }
.round-list__when { display: flex; flex-direction: column; align-items: center; }
@media (min-width: 1024px) {
    .fixture { grid-template-columns: 150px minmax(0, 1fr) 190px; align-items: center; }
}
/* Sidebar headlines */
.headline-list { margin: 0; padding: 0; list-style: none; }
.headline { display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: var(--space-3) 0; border-top: 1px solid var(--color-border); }
.headline__title { font-weight: 700; line-height: 1.3; }
/* Statistik: leaders, table, list */
.leader-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.leader { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); }
.leader__player { display: flex; align-items: center; gap: var(--space-3); }
.leader__value { font: 700 36px/1 var(--font-head); }
.avatar { display: inline-block; flex-shrink: 0; width: 32px; height: 32px; margin-right: var(--space-2); border-radius: 50%; background: var(--color-border-strong); object-fit: cover; }
.avatar--lg { width: 48px; height: 48px; }
.stat-list__rows { margin: 0; padding: 0; list-style: none; }
.stat-list__row { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) 0; border-top: 1px solid var(--color-border); }
.stat-list__value { margin-left: auto; font: 700 20px var(--font-head); }
/* Highlight: featured player, grid, ranked */
.featured-video__grid { display: grid; gap: var(--space-6); }
.video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-lg); background: #05070B; }
.video-frame iframe, .video-frame img { width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-frame img { opacity: 0.55; }
.video-frame__note { position: absolute; inset: auto var(--space-3) var(--space-3); padding: var(--space-3); border-radius: var(--radius-md); background: rgb(0 0 0 / 0.75); font-weight: 600; text-align: center; }
.featured-video__kicker { margin-top: var(--space-4); }
.featured-video__title { margin-top: var(--space-2); font: 700 26px/1.1 var(--font-head); text-transform: uppercase; }
.featured-video__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
.featured-video__bar .meta { margin-right: auto; }
.featured-video__desc { margin-top: var(--space-3); color: var(--color-text-soft); }
.featured-video__next { margin-bottom: var(--space-3); font-size: 20px; }
.next-list, .video-grid__list, .ranked-grid { margin: 0; padding: 0; list-style: none; }
.next-item { display: flex; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--color-border); }
.next-item .media { width: 140px; flex-shrink: 0; border-radius: var(--radius-sm); }
.next-item__title { display: block; font-weight: 700; font-size: 14px; line-height: 1.3; }
.video-grid__list, .ranked-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-5) var(--space-4); }
.ranked__no { position: absolute; left: 10px; top: 6px; color: var(--color-primary); font: 700 32px var(--font-head); }
@media (min-width: 1024px) {
    .featured-video__grid { grid-template-columns: minmax(0, 1fr) 360px; }
    .video-grid__list, .ranked-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .featured-video__title { font-size: 32px; }
}

/* Pinned news (M3b2 spec §5.5) */
.pin-label { display: inline-block; width: fit-content; margin-right: var(--space-2); padding: 1px var(--space-2); border-radius: var(--radius-sm); background: var(--color-primary); color: var(--color-on-primary); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
