/* -- ARTICLES -- */

/* Article style */
.article-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.article-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 60px;
    font-family: "Merriweather Regular", serif;

    width: 100%;
    min-width: 0;
    /* critical */
}

/* Breadcrumbs should always be its own row */
.article-layout>.breadcrumbs {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Article must be allowed to shrink inside the flex row */
.article-layout>article {
    flex: 1 1 0;
    min-width: 0;
    /* critical */
    max-width: 100%;
}


.article-layout h1 {
    font-size: 1.6rem;
    font-family: "Merriweather Bold", serif;
    margin-bottom: 0.3em;
}

.article-layout h2 {
    font-size: 1.4rem;
    font-family: "Merriweather Bold", serif;
    margin-bottom: 0.3em;
}

.article-layout h3 {
    font-size: 1.2rem;
    font-family: "Merriweather Bold", serif;
    margin-bottom: 0.3em;
}

.article-layout h4,
.article-layout h5 {
    font-family: "Merriweather Bold", serif;
    margin-bottom: 0.3em;
}

.article-layout p {
    margin-bottom: 1em;
}

.article-layout strong {
    font-family: "Merriweather Bold", serif;
}

.article-layout ul {
    list-style: disc;
    padding-left: 1em;
}

.float-left {
    float: left;
    max-width: auto;
    margin: 20px 20px 20px 0;
}

.float-left img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.float-right {
    float: right;
    max-width: 25%;
    margin: 0 0 20px 20px;
    padding: 10px;
    font-size: 0.8rem;
    border: 1px solid var(--text-color);
    border-radius: 5px;
    box-shadow: border-box 0 2px 6px rgba(0, 0, 0, 0.1);
}

.float-right h3 {
    text-align: center;
}

.breadcrumbs {
    font-size: 0.7rem;
    font-family: "Work Sans Regular", sans-serif;
}

.article-meta {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.7rem;
    margin: 0 0 20px;
    background: var(--bg-color);
    filter: contrast(0.8);
    padding: 5px 10px;
}

.article-meta p {
    margin: 0;
    display: flex;
    align-items: center;
}

.article-meta p::before {
    content: "•";
    margin-right: 5px;
    margin-left: 0;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }

    .article-meta p::before {
        display: none;
    }
}

.sources {
    font-size: 0.7rem;
    margin-top: 20px;
    border-top: 1px solid var(--text-color);
}

.related-videos {
    margin-top: 30px;
}

/* Video Pills */
.video-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.video-pills a {
    background: var(--bg-color);
    color: var(--accent-color);
    border-radius: 999px;
    padding: 10px 12px;
    text-decoration: none;
    text-align: center;
    font-size: 0.8rem;
    transition: background 0.3s, color 0.3s;
    border: 1px solid var(--accent-color);
}

.video-pills a:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* end Video Pills */

@media (max-width: 768px) {
    .article-layout {
        flex-direction: column;
    }

    .float-left,
    .float-right {
        float: none;
        max-width: 100%;
        margin: 0 0 20px 0;
    }

    .video-pills a {
        width: 100%;
    }
}

figcaption {
    text-align: center;
    font-size: 0.5rem;
    font-style: italic;
    color: var(--text-color);
}

/* end Article style */



/* ==Press list styles== */

/* Shared list layout */
.press-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* space between cards */
    list-style: none;
    padding: 0;
    /* remove left indent */
    margin: .5rem 0 1rem;
}

/* Two items per row */
.press-item {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    flex: 0 1 calc(50% - 5px);
    /* 2 columns accounting for half the gap */
    font-size: 0.8rem;
    padding: 10px;
    background: var(--bg-color);
    filter: contrast(0.8);
    border: 1px solid var(--text-color);
    border-radius: 5px;
}

.press-item>p {
    margin: 0;
}

/* Make sure strong/em don’t become blocks */
.press-item strong,
.press-item em {
    display: inline;
}

.press-item strong {
    font-family: "Merriweather Bold", serif;
}

/* ==end Press list styles== */



/* == LIST STYLES == */

/* Comfy list (readable blocks) */
ul.list--comfy {
    margin: .75rem 0 1rem;
    padding-left: 1.4rem;
}

ul.list--comfy li {
    margin: .5rem 0;
    line-height: 1.75;
}

ul.list--comfy li::marker {
    color: var(--accent-color);
}

/* Grid list (auto-fit to columns; bullet) */
ul.list--grid {
    margin: .75rem 0 1rem;
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .5rem .75rem;
}

ul.list--grid li {
    position: relative;
    padding-left: 1.1rem;
}

ul.list--grid li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
}

/* == end LIST STYLES == */







/* ===== More Articles ===== */
.more-articles {
    width: 100%;
    margin-top: 1.25rem;
    padding: 16px;
    border: 1px solid var(--text-color);
    border-radius: 5px;
    box-sizing: border-box;

    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.more-articles h2 {
    width: 100%;
    margin: 0 0 4px 0;
}

.more-articles a {
    width: calc(25% - 9px);
    /* 4 across on desktop */
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.more-articles a img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.more-articles a div {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.more-articles a strong {
    font-family: "Merriweather Bold", serif;
    /* or Work Sans Bold */
    font-size: 0.95rem;
    line-height: 1.2;
}

.more-articles a span {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    line-height: 1.35;
    word-break: break-word;
}

/* Hover */
.more-articles a:hover strong,
.more-articles a:focus-visible strong {
    color: var(--accent-color);
}

/* Mobile: stack */
@media (max-width: 768px) {
    .more-articles a {
        width: 100%;
    }

    .more-articles a img {
        height: 160px;
    }
}

/* ===== end More Articles ===== */






/* ===== Thumb list inside .faq-answer ===== */
.list--thumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.list--thumb li::marker {
    content: "";
}

.list--thumb a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid color-mix(in srgb, var(--text-color) 10%, transparent);
    background: color-mix(in srgb, var(--bg-color) 92%, transparent);
    transition: transform var(--trans-speed) var(--trans-ease),
        border-color var(--trans-speed) var(--trans-ease);
}

.list--thumb a:hover,
.list--thumb a:focus-visible {
    color: var(--accent-color);
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--accent-color) 45%, transparent);
}

.list--thumb img {
    width: 64px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    flex: 0 0 auto;
    display: block;
}

.list--thumb span {
    font-size: 0.8rem;
    font-family: "Merriweather Bold", serif;
    line-height: 1.25;
}

/* ===== end Thumb list ===== */





/* -- BOOKS -- */
.book-float-right {
    float: right;
    max-width: 180px;
    margin: 0 0 10px 20px;
    padding: 10px;
    border: 1px solid var(--text-color);
    border-radius: 5px;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.book-float-right h3 {
    text-align: center;
}

aside.book-float-right p {
    margin: 0;
    font-family: "Work Sans Regular", sans-serif;
    font-size: 0.6rem;
    opacity: 0.8;
}

.rv-disclosure {
    margin-top: 10px;
    font-family: "Work Sans Regular", sans-serif;
    font-size: 0.6rem;
    opacity: 0.8;
}

/* Book card */
.book-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 210px;
    padding: 16px;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    overflow: hidden;
    background: var(--bg-color), #222;
    background-size: cover;
    background-repeat: no-repeat;
    text-shadow:
        0 1px 0 rgba(23, 23, 23, 0.75),
        0 -1px 0 rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .13);
    transition: transform .2s, box-shadow .2s;
}

.book-card:hover {
    color: var(--accent-color);
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
}

.book-card strong {
    font-family: "Merriweather Bold", serif;
    font-size: 0.8rem;
    margin: 0 0 5px;
}

.book-card small {
    font-size: 0.6rem;
    opacity: 0.9;
}

/* Responsive: 2-up on mobile */
@media (max-width:768px) {
    .book-float-right {
        float: none;
        max-width: 100%;
        margin: 0 0 20px 0;
        flex-wrap: wrap;
        flex-direction: row;
    }

    .book-float-right h3,
    .book-float-right p {
        flex: 0 0 100%;
    }

    .book-card {
        flex: 0 1 calc(50% - 5px);
        height: 220px;
        padding: 10px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .book-card {
        transition: none;
    }

    .book-card:hover {
        transform: none;
    }
}

/* end BOOKS */



/* -- STAR RATINGS -- */

/* Base star style */
[class^="stars-"] {
    color: #FFA724;
    font-size: 1.2rem;
    font-family: system-ui, sans-serif;
    letter-spacing: 2px;
}

/* Static ratings */
.stars-5::before {
    content: "★★★★★";
}

.stars-4::before {
    content: "★★★★☆";
}

.stars-3::before {
    content: "★★★☆☆";
}

.stars-2::before {
    content: "★★☆☆☆";
}

.stars-1::before {
    content: "★☆☆☆☆";
}

.stars-0::before {
    content: "☆☆☆☆☆";
}

/* -- end STAR RATINGS -- */






/* ===== FAQ — <details><summary> ===== */

/* Container */
.faq-section {
    color: var(--text-color);
    background: var(--bg-color);
}

/* Each item */
.faq-item {
    margin: 10px 0;
    border: 1px solid rgba(0, 0, 0, .12);
    /* fallback */
    border: 1px solid color-mix(in srgb, var(--text-color) 15%, transparent);
    border-radius: 10px;
    background: transparent;
}

/* Summary header */
.faq-item summary {
    position: relative;
    /* needed for the arrow */
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 12px 16px 12px 40px;
    /* left room for arrow */
    font-family: "Merriweather Bold", serif;
    color: var(--text-color);
    outline: none;
    transition: color var(--trans-speed) var(--trans-ease),
        background var(--trans-speed) var(--trans-ease);
}

/* Hide built-in markers */
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    content: "";
}

/* Chevron arrow */
.faq-item summary::before {
    content: "›";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    line-height: 1;
    font-size: 20px;
    color: var(--accent-color);
    transition: transform var(--trans-speed) var(--trans-ease);
}

.faq-item[open] summary::before {
    transform: translateY(-50%) rotate(90deg);
}

/* Hover / focus */
.faq-item summary:hover {
    color: var(--accent-color);
}

.faq-item:focus-within summary {
    box-shadow: 0 0 0 2px rgba(191, 13, 13, .35) inset;
    /* fallback */
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-color) 40%, transparent) inset;
    border-radius: 9px;
}

/* Answer body */
.faq-item .faq-answer {
    padding: 16px;
    color: color-mix(in srgb, var(--text-color) 75%, var(--bg-color));
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {

    .faq-item,
    .faq-item * {
        transition: none !important;
    }
}

/* ===== end FAQ ===== */






/* ===== Compare Table styles ===== */

.table-scroll {
    width: auto;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
    /* critical inside flex */
}

/* give the table a real overflow width so the wrapper can scroll */
.table-scroll .cmptable {
    width: 100%;
    min-width: 720px;
    /* forces horizontal scroll on phones */
    border-collapse: collapse;
    margin: 10px 0 20px;
    font-size: 0.9rem;
    table-layout: auto;
}

.cmptable th,
.cmptable td {
    border: 1px solid color-mix(in srgb, var(--text-color) 18%, transparent);
    padding: 10px;
    vertical-align: top;
}

.cmptable th {
    background-color: color-mix(in srgb, var(--bg-color) 90%, var(--text-color) 5%);
    text-align: left;
    font-family: "Merriweather Bold", serif;
}

.cmptable tbody tr:nth-child(even) {
    background-color: color-mix(in srgb, var(--bg-color) 95%, var(--text-color) 3%);
}

.cmptable td {
    overflow-wrap: anywhere;
    word-break: normal;
}

/* ===== end Compare Table styles ===== */



/* ======================================================================
   HUB CARDS GRID
====================================================================== */

.hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.25rem;
}

@media (min-width: 768px) {
    .hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .hub-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Card base */
.hub-card {
    border-radius: 5px;
    overflow: hidden;
    background: var(--bg-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Make whole card clickable */
.hub-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.hub-card-link:hover, .hub-card-link:focus {
    color: var(--accent-color);
}

/* Hover / focus state */
.hub-card:hover,
.hub-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.26);
}

/* Image block */
.hub-card-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Text block */
.hub-card-body {
    padding: 0.85rem 1rem 1rem;
}

.hub-card-title {
    font-size: 1rem;
    margin: 0 0 0.45rem;
}

.hub-card-text {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    opacity: 0.9;
}

/* Ad variant of hub-card */
.hub-card-ad {
    border: 1px solid var(--accent-color);
}

.hub-card-ad .hub-card-title {
    color: var(--accent-color);
}

.hub-card-ad .hub-card-text {
    font-size: 0.85rem;
    margin: 0.15rem 0;
}

/* Highlight genres, IMDb label, star */
.prime-highlight {
    color: var(--accent-color);
    font-family: "Work Sans Bold", sans-serif;
}

/* Watch on Prime badge/button */
.prime-watch {
    width: 100%;
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--accent-color);
    color: #F7F7F7;
    font-size: 0.85rem;
    font-family: "Work Sans Bold", sans-serif;
    text-align: center;
    border: 1px solid transparent;
}

.prime-watch:hover {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

/* ===== end Hub cards grid ===== */