/* TOPICAL Movie Rankings (/entertainment/movies - movies.html, movies.js).
   Laid out like football.topical.live (football/site/styles.css): the
   TOPICAL navy-to-teal gradient (styles.css body), a dark glass header with
   gold highlights and pill tabs, big gold-ruled headings, white cards with a
   gold top edge for the lists, teal score boxes. */
.moviesPage {
    --gold: #ffd166;
    --navy: #12355b;
    --teal: #124e66;
    --good: #2a9d8f;
    --text: #12242d;
    --muted: #5b7480;
    --line: #d5e5e0;
    --rowHover: #eef6f5;
    --pageText: #e8f1f4;
    color: var(--pageText);
    min-height: 100vh;
    line-height: 1.5;
}

.moviesPage a {
    color: var(--gold);
}

/* --- header --- */
.mvHeader {
    background: rgba(8, 31, 48, .92);
    border-bottom: 1px solid rgba(255, 209, 102, .25);
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(6px);
}

.mvHeaderInner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 16px 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mvBack,
.mvAccountLink {
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: .85rem;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 999px;
    padding: 5px 12px;
    white-space: nowrap;
}

.mvAccountLink {
    color: var(--gold) !important;
    border-color: rgba(255, 209, 102, .6);
}

.mvBack:hover,
.mvAccountLink:hover {
    background: rgba(255, 209, 102, .14);
}

.mvBrand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff !important;
    text-decoration: none;
    flex-wrap: nowrap;
    min-width: 0;
}

.mvLogo {
    width: 46px;
    height: 36px;
}

.mvBrandMark {
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: .04em;
}

.mvBrandSub {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gold);
}

.mvAccount {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.moviesTabs {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4px 16px 10px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.moviesTabs::-webkit-scrollbar {
    display: none;
}

.moviesTabs a {
    border: 1px solid rgba(255, 209, 102, .45);
    border-radius: 999px;
    padding: 6px 14px;
    color: var(--gold);
    background: rgba(255, 255, 255, .04);
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    white-space: nowrap;
}

.moviesTabs a:hover {
    background: rgba(255, 209, 102, .12);
}

.moviesTabs a.active {
    background: var(--gold);
    color: #081f30;
    border-color: var(--gold);
    box-shadow: 0 -3px 0 #fff0bd inset, 0 4px 14px rgba(255, 209, 102, .24);
}

/* --- page --- */
.moviesMain {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    box-sizing: border-box;
}

/* Page heading, like the football site's "-- QUARTERBACK RATINGS --". */
.moviesIntro {
    text-align: center;
    padding: 10px 0 6px;
}

.moviesIntro h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0;
    color: #fff;
    font-size: clamp(1.5rem, 4.5vw, 2.4rem);
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-shadow: 0 3px 12px rgba(0, 0, 0, .4);
}

.moviesIntro h1::before,
.moviesIntro h1::after {
    content: '';
    flex: 0 0 clamp(24px, 7vw, 60px);
    height: 3px;
    border-radius: 2px;
    background: var(--gold);
}

.moviesAsOf {
    color: #cfe3e8;
    display: inline-block;
    margin: 8px 0 12px;
    padding: 3px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    font-weight: 700;
    font-size: .9rem;
}

.moviesLede {
    max-width: 760px;
    margin: 0 auto;
    font-weight: 600;
    line-height: 1.6;
}

.moviesMuted {
    color: var(--muted);
    font-size: 13px;
}

/* --- add a movie: a glass bar like the football site's search row --- */
.moviesAdd {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    margin: 18px 0 14px;
}

.moviesSearchLabel {
    display: block;
    color: var(--gold);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0 0 8px 2px;
}

.moviesSearchRow {
    display: flex;
    gap: 8px;
}

.moviesSearchRow input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 16px;
    background: #fff;
    color: var(--text);
}

.moviesSearchRow input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 209, 102, .25);
}

.moviesSearchRow button {
    border-radius: 999px;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: #081f30;
    font-weight: 800;
    padding: 0 20px;
}

.moviesStatus:empty {
    display: none;
}

.moviesStatus {
    margin: 8px 2px 0;
    font-weight: 700;
    color: #fff;
}

.moviesResults {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    background: #fff;
    border-radius: 12px;
    color: var(--text);
}

.moviesResults:empty {
    display: none;
}

.moviesResult {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-top: 1px solid var(--line);
}

.moviesResult:first-child {
    border-top: 0;
}

.moviesResultInfo {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.moviesResultInfo .moviesMuted {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.moviesResult button {
    padding: 7px 12px;
    font-size: 13px;
    white-space: nowrap;
}

/* --- board sort row --- */
.moviesBoardBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 10px;
}

.moviesBoardBar .moviesMuted {
    color: #cfe3e8;
}

.moviesSort {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.moviesSort button {
    border: 1px solid var(--gold);
    border-radius: 999px;
    background: rgba(8, 31, 48, .6);
    color: var(--gold);
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
}

.moviesSort button.active {
    background: var(--gold);
    color: #081f30;
}

/* --- the white list card (like the football ratings table) --- */
.moviesCard {
    background: #fff;
    color: var(--text);
    border-radius: 16px;
    padding: 4px 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    border-top: 4px solid var(--gold);
}

.moviesCard a {
    color: var(--teal);
}

.moviesBoard,
.moviesRankList {
    list-style: none;
    margin: 0;
    padding: 0;
}

.moviesBoardItem {
    border-bottom: 1px solid var(--line);
}

.moviesBoardRow {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 6px;
    cursor: pointer;
}

.moviesBoardItem:last-child,
.moviesRankRow:last-child {
    border-bottom: 0;
}

.moviesWhy {
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    color: var(--teal);
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
}

.moviesBoardPanel {
    padding: 0 10px 16px 88px;
}

.moviesBoardRow:hover {
    background: var(--rowHover);
}

.moviesBoardItem.moviesFlash {
    animation: moviesFlash 2.4s ease;
}

@keyframes moviesFlash {
    0%, 40% { background: #fff4d6; }
    100% { background: transparent; }
}

.moviesBoardPlace,
.moviesRankNo {
    width: 30px;
    text-align: center;
    color: var(--muted);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.moviesBoardInfo {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.moviesBoardTitle {
    font-size: 1.05rem;
    color: var(--text);
}

.moviesYear {
    font-weight: 400;
    color: var(--muted);
}

.moviesBoardTags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.moviesBadge {
    display: inline-block;
    background: var(--good);
    color: #fff;
    border-radius: 6px;
    padding: 1px 8px;
    font-size: 12px;
    font-weight: 700;
}

.moviesBadge.muted {
    background: #e6eef0;
    color: var(--muted);
}

.moviesAddedBy {
    font-size: 13px;
    color: var(--muted);
}

.moviesAddedBy a,
.moviesAddedBy strong {
    color: var(--teal);
    font-weight: 700;
}

.moviesVote {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    padding: 6px 8px;
    background: #fff;
    color: var(--good);
    border: 2px solid var(--good);
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: none;
}

.moviesVote:hover {
    background: #eef6f5;
}

.moviesVote.voted {
    background: var(--good);
    color: #fff;
}

.moviesVoteArrow {
    font-size: 14px;
    line-height: 1;
}

.moviesVoteCount {
    font-weight: 900;
    font-size: 15px;
}

.moviesPoster {
    border-radius: 6px;
    object-fit: cover;
    background: #e6eef0;
    flex-shrink: 0;
}

.moviesPoster.small {
    width: 46px;
    height: 69px;
}

.moviesPosterBlank {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.moviesEmpty {
    padding: 24px;
    text-align: center;
    color: var(--muted);
}

/* --- top 50 lists --- */
.moviesRankRow {
    border-bottom: 1px solid var(--line);
}

.moviesRankHead {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 6px;
    background: none;
    color: var(--text);
    text-align: left;
    border-radius: 0;
    font: inherit;
    box-shadow: none;
}

.moviesRankHead:hover {
    background: var(--rowHover);
}

.moviesRankName {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.moviesRankName strong {
    font-size: 1.05rem;
}

/* Score box, like the football site's rating boxes. */
.moviesScore {
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    background: var(--good);
    border-radius: 6px;
    padding: 4px 8px;
    min-width: 46px;
    text-align: center;
    flex-shrink: 0;
}

.moviesRankPanel {
    padding: 4px 10px 16px 48px;
}

.moviesDetail h4 {
    margin: 12px 0 2px;
    color: var(--navy);
}

.moviesOverview {
    margin: 0 0 6px;
    line-height: 1.55;
}

.moviesBars {
    display: grid;
    gap: 6px;
    margin: 8px 0 12px;
    max-width: 620px;
}

.moviesBar {
    display: grid;
    grid-template-columns: 150px 1fr 34px;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.moviesBarTrack {
    height: 8px;
    background: #dce8e5;
    border-radius: 999px;
    overflow: hidden;
}

.moviesBarFill {
    display: block;
    height: 100%;
    background: var(--good);
    border-radius: 999px;
}

.moviesBarValue {
    font-weight: 800;
    text-align: right;
    color: var(--navy);
}

.moviesFacts {
    list-style: none;
    padding: 0;
    margin: 6px 0;
    display: grid;
    gap: 5px;
    font-size: 14px;
}

.moviesFacts li {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 8px;
}

.moviesFacts li span {
    color: var(--muted);
}

.moviesFacts li strong {
    font-weight: 600;
}

.moviesCast {
    font-size: 14px;
    line-height: 1.55;
}

.moviesCast strong {
    color: var(--navy);
}

.moviesQuote {
    margin: 12px 0 0;
    padding: 8px 12px;
    border-left: 4px solid var(--gold);
    background: #fffaf0;
    border-radius: 0 8px 8px 0;
}

.moviesQuote p {
    margin: 0 0 4px;
    font-style: italic;
    line-height: 1.55;
}

.moviesQuote cite {
    font-size: 12px;
    color: var(--muted);
    font-style: normal;
}

/* --- how it works: a white card with gold section rules --- */
.moviesHow {
    background: #fff;
    color: var(--text);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    margin-top: 12px;
}

.moviesHow a {
    color: var(--teal);
}

.moviesHow p {
    margin: 10px 0;
    line-height: 1.6;
    max-width: 900px;
}

.moviesHow h3 {
    color: var(--navy);
    padding-left: 10px;
    border-left: 4px solid var(--gold);
    margin: 22px 0 8px;
}

.moviesWeights {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 8px 0;
}

.moviesWeights th,
.moviesWeights td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    line-height: 1.45;
}

.moviesWeights th {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.moviesWeights td:first-child {
    font-weight: 700;
    white-space: nowrap;
}

.moviesWeights td:nth-child(2) {
    font-weight: 800;
    color: var(--good);
}

.moviesFooter {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 16px 30px;
    color: #cfe3e8;
    font-size: 13px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

/* --- phones --- */
@media (max-width: 700px) {
    .mvHeaderInner { padding: 10px 12px 4px; gap: 8px; }
    .mvBack, .mvAccountLink { font-size: .78rem; padding: 4px 10px; }
    .mvBrandMark { font-size: 1.25rem; }
    .mvBrandSub { display: none; }
    .mvAccountLink { max-width: 110px; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
    .mvLogo { width: 36px; height: 28px; }
    .moviesTabs { padding: 4px 8px 10px; }
    .moviesTabs a { padding: 6px 11px; font-size: .85rem; }
    .moviesMain { padding: 14px 12px 32px; }
    .moviesLede { font-size: .92rem; }
    .moviesCard { padding: 2px 6px; }
    .moviesBoardRow { gap: 8px; padding: 8px 2px; }
    .moviesBoardPlace, .moviesRankNo { width: 22px; font-size: .95rem; }
    .moviesRankPanel, .moviesBoardPanel { padding: 4px 6px 14px; }
    .moviesBar { grid-template-columns: 110px 1fr 30px; }
    .moviesFacts li { grid-template-columns: 1fr; gap: 0; }
    .moviesHow { padding: 16px; }
    .moviesWeights td:first-child { white-space: normal; }
}

@media (max-width: 420px) {
    .mvBrandMark { display: none; }
}

/* --- film / actor pages (movies/pages.js) --- */
.mvCrumbs { font-size: .85rem; color: #cfe3e8; margin: 0 0 10px; }
.mvCrumbs a { color: var(--gold); }
.mvStaticCard { margin-top: 0; }
.mvStaticHero { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 12px; }
.mvStaticPoster { width: 140px; height: 210px; border-radius: 10px; object-fit: cover; background: #e6eef0; flex-shrink: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.mvStaticTitle { margin: 0 0 4px; color: var(--navy); font-size: clamp(1.5rem, 4vw, 2.2rem); }
.mvStaticScore { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.mvStaticVote { display: inline-block; font-weight: 800; padding: 8px 14px; border-radius: 999px; background: var(--gold); color: #081f30 !important; text-decoration: none; }
.moviesHow .mvStaticH2 { color: var(--navy); font-size: 1.15rem; padding-left: 10px; border-left: 4px solid var(--gold); margin: 22px 0 6px; }
.mvStaticNav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.mvTableScroll { overflow-x: auto; }
.mvFilmTable td:first-child, .mvFilmTable td:nth-child(2) { white-space: normal; }
.mvPageLink { font-size: 13px; font-weight: 700; }
.moviesShowMore { display: block; margin: 12px auto 0; border: 1px solid var(--gold); background: rgba(8, 31, 48, .6); color: var(--gold); font-weight: 800; border-radius: 999px; padding: 8px 20px; }
.moviesListFilter { width: 100%; box-sizing: border-box; padding: 10px 14px; border-radius: 10px; border: 1px solid transparent; font-size: 16px; margin: 14px 0 10px; }
.moviesResultTags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.moviesResultActions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.moviesResultPanel { padding: 0 10px 12px; }
@media (max-width: 700px) {
    .mvStaticHero { flex-direction: column; }
    .mvStaticPoster { width: 110px; height: 165px; }
}
.moviesResults a { color: var(--teal); }
