/* TDN Where to Watch 2.1.0 — card styling matched to the TDN Marquee theme. */

.tdnwtw {
    --tdnwtw-accent: var(--tdn-red, #e51a3e);
    --tdnwtw-ink: var(--ink, #0b0b0d);
    --tdnwtw-muted: var(--muted, #5a5a66);
    --tdnwtw-rule: var(--rule, #e6e6ec);
    --tdnwtw-paper: var(--paper, #ffffff);
    margin: 2.25rem 0;
    font-family: inherit;
    color: var(--tdnwtw-ink);
}

.tdnwtw--card {
    background: var(--tdnwtw-paper);
    border: 1px solid var(--tdnwtw-rule);
    border-radius: 14px;
    padding: 1.35rem 1.5rem 1.1rem;
    box-shadow: 0 1px 3px rgba(11, 11, 13, 0.06);
}

.tdnwtw--minimal {
    border-top: 4px solid var(--tdnwtw-accent);
    padding-top: 1.1rem;
}

.tdnwtw__title {
    font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.55rem;
    line-height: 1.1;
    margin: 0 0 0.9rem;
    padding-left: 0.7rem;
    border-left: 4px solid var(--tdnwtw-accent);
}

.tdnwtw__widget {
    min-height: 120px;
}

.tdnwtw__widget iframe {
    max-width: 100%;
}

.tdnwtw__brand {
    font-size: 0.8rem;
    color: var(--tdnwtw-muted);
    margin: 0.6rem 0 0;
}

.tdnwtw__brand a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}

.tdnwtw__brand a:hover {
    color: var(--tdnwtw-accent);
}

@media (max-width: 600px) {
    .tdnwtw--card {
        padding: 1.1rem 1.1rem 0.9rem;
        border-radius: 10px;
    }

    .tdnwtw__title {
        font-size: 1.35rem;
    }
}

/* "Now Streaming" discovery grid (2.2.0). */

.tdnwtw-grid {
    margin: 2.5rem 0;
}

.tdnwtw-grid__heading {
    font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.9rem;
    line-height: 1.1;
    margin: 0 0 1.1rem;
    padding-left: 0.7rem;
    border-left: 4px solid var(--tdn-red, #e51a3e);
}

.tdnwtw-grid__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tdnwtw-grid__card {
    display: block;
    background: var(--paper, #ffffff);
    border: 1px solid var(--rule, #e6e6ec);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tdnwtw-grid__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11, 11, 13, 0.10);
}

.tdnwtw-grid__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: #111;
    overflow: hidden;
}

.tdnwtw-grid__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tdnwtw-grid__badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    line-height: 1;
    color: #fff;
    background: var(--tdn-red, #e51a3e);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
}

.tdnwtw-grid__title {
    display: block;
    font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.25;
    padding: 0.75rem 0.9rem 0.9rem;
}

@media (max-width: 520px) {
    .tdnwtw-grid__cards {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.9rem;
    }

    .tdnwtw-grid__heading {
        font-size: 1.6rem;
    }
}
