/* frontend/assets/css/main.css — 3Music TV Design System */

/* ── Alpine.js: hide x-cloak elements until Alpine initialises ────────────── */
[x-cloak] { display: none !important; }

/* ── Local Fonts — Graphik (body) ─────────────────────────────────────────── */
@font-face {
    font-family: 'Graphik';
    src: url('../font/GRAPHIKTHIN.OTF') format('opentype');
    font-weight: 100; font-style: normal; font-display: swap;
}

@media (max-width: 640px) {
    #tm-navbar .tm-nav-pluzz,
    #tm-navbar .tm-nav-orange {
        display: none !important;
    }
}
@font-face {
    font-family: 'Graphik';
    src: url('../font/GRAPHIKEXTRALIGHT.OTF') format('opentype');
    font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Graphik';
    src: url('../font/GRAPHIKLIGHT.OTF') format('opentype');
    font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Graphik';
    src: url('../font/GRAPHIKREGULAR.OTF') format('opentype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Graphik';
    src: url('../font/GraphikMedium.otf') format('opentype');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Graphik';
    src: url('../font/GRAPHIKSEMIBOLD.OTF') format('opentype');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Graphik';
    src: url('../font/GRAPHIKBOLD.OTF') format('opentype');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Graphik';
    src: url('../font/GRAPHIKBLACK.OTF') format('opentype');
    font-weight: 900; font-style: normal; font-display: swap;
}

/* Heading-only Graphik family.
   Graphik has no ExtraBold/800 file, so keep the reduced 700 heading step on
   the real SemiBold face. This makes 800 -> 700 visibly lighter without
   changing buttons, labels, and other interface text on the normal family. */
@font-face {
    font-family: 'Graphik Headings';
    src: url('../font/GRAPHIKTHIN.OTF') format('opentype');
    font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Graphik Headings';
    src: url('../font/GRAPHIKEXTRALIGHT.OTF') format('opentype');
    font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Graphik Headings';
    src: url('../font/GRAPHIKLIGHT.OTF') format('opentype');
    font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Graphik Headings';
    src: url('../font/GRAPHIKREGULAR.OTF') format('opentype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Graphik Headings';
    src: url('../font/GraphikMedium.otf') format('opentype');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Graphik Headings';
    src: url('../font/GRAPHIKSEMIBOLD.OTF') format('opentype');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Graphik Headings';
    src: url('../font/GRAPHIKSEMIBOLD.OTF') format('opentype');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Graphik Headings';
    src: url('../font/GRAPHIKBOLD.OTF') format('opentype');
    font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Graphik Headings';
    src: url('../font/GRAPHIKBOLD.OTF') format('opentype');
    font-weight: 900; font-style: normal; font-display: swap;
}

/* ── Local Fonts — Republica Minor 2.0 (display/headlines) ───────────────── */
@font-face {
    font-family: 'Republica Minor';
    src: url('../font/Republica Minor 2.0.otf') format('opentype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Republica Minor';
    src: url('../font/Republica_Minor_Bold_Italic.ttf') format('truetype');
    font-weight: 700; font-style: italic; font-display: swap;
}

/* ── Brand Variables ──────────────────────────────────────────────────────── */
:root {
    /* ─ Brand Core ─ */
    --tm-primary:        #F73145;   /* Brand Red */
    --tm-primary-dark:   #d42030;   /* Hover Red */
    --tm-red:            var(--tm-primary);
    --tm-yellow:         #FFDB01;   /* Brand Yellow accent */
    --tm-yellow-alt:     #F0DA15;
    --tm-gradient-start: #FF6C02;   /* Orange gradient */
    --tm-gradient-end:   #FFA91E;
    --tm-green:          #0F7503;   /* Game On Green */
    --tm-green-dark:     #054B01;
    --tm-neon:           #59FF50;
    --tm-purple:         #AB48FB;
    --tm-purple-dark:    #7118D6;
    --tm-sky:            #4EC5FF;
    /* ─ Neutrals ─ */
    --tm-dark:           #0A0A0A;
    --tm-black:          #000000;
    --tm-text:           #0A0A0A;
    --tm-text-light:     #444444;
    --tm-text-muted:     #777777;
    --tm-bg:             #f5f5f5;
    --tm-bg-white:       #ffffff;
    --tm-border:         #e0e0e0;
    --tm-border-dark:    #c0c0c0;
    /* ─ Layout ─ */
    --tm-nav-height:     56px;
    --tm-cat-height:     44px;
    /* ─ Shared corner system ─ */
    --tm-radius-sm:      8px;
    --tm-radius-control: 12px;
    --tm-radius-card:    20px;
    --tm-radius-banner:  28px;
    --tm-radius-pill:    999px;
    --tm-radius:         var(--tm-radius-control);
}

/* ── Global Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Intentional circles */
.tm-avatar,
.tm-live-dot,
.tm-dot {
    border-radius: 50% !important;
}

body {
    font-family: 'Graphik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--tm-bg-white);
    color: var(--tm-text);
    margin: 0;
    padding: 0;
}

/* Semantic headings without an explicit component weight would otherwise use
   the browser's default 700 weight. Keep that baseline on the new 500 step. */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Graphik Headings', 'Graphik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
}

/* Some card and widget headings use non-semantic elements. Keep the opt-in
   list precise so player metadata and similarly named UI text are unaffected. */
:where(
    .tm-section-title,
    .tm-section-title-lg,
    .tm-section-sep > span,
    .tm-ticket-section-title,
    .tm-card-grid-header-title,
    .tm-more-news-header-title,
    .tm-live-card-name,
    .tm-netflix-hdr-title,
    .tm-related-title,
    .tm-toc-title,
    .tm-author-name,
    .tm-footer-heading,
    .tmf-heading,
    .tm-sw-hdr-title,
    .tm-sp-title,
    .tm-sp-section-hdr,
    .tm-ed-display,
    .tm-ed-section-heading,
    .tm-widget-title,
    .tm-bb-center-title,
    .tm-bb-trending-hdr,
    .tm-music-shdr-title,
    .tm-music-spotlight-title,
    .tm-val-nocode-title
) {
    font-family: 'Graphik Headings', 'Graphik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Static equivalents for the slightly reduced heading sizes used by templates.
   The prebuilt Tailwind file cannot generate arbitrary-value utilities at runtime. */
.text-\[\.7rem\]  { font-size: .7rem; }
.text-\[\.82rem\] { font-size: .82rem; }
.text-\[\.94rem\] { font-size: .94rem; }
.text-\[1\.05rem\] { font-size: 1.05rem; }
.text-\[1\.18rem\] { font-size: 1.18rem; }
.text-\[1\.4rem\]  { font-size: 1.4rem; }
.text-\[1\.75rem\] { font-size: 1.75rem; }
.text-\[2\.1rem\]  { font-size: 2.1rem; }

/* Shared visually-hidden utility for accessible labels and status copy. */
.tm-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.tm-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    padding: 10px 14px;
    border-radius: var(--tm-radius-control);
    background: #fff;
    color: #000;
    font-size: 0.82rem;
    font-weight: 700;
    transform: translateY(-150%);
    transition: transform 0.18s ease;
}

.tm-skip-link:focus {
    transform: translateY(0);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ── Page Wrapper ─────────────────────────────────────────────────────────── */
.page_wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#tm-main {
    flex: 1;
}

/* ── Reading Progress Bar ─────────────────────────────────────────────────── */
#tm-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--tm-primary);
    width: 0;
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */
#tm-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #000;
    height: var(--tm-nav-height);
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--tm-primary);
}

/* Page themes blur the navbar, which confines fixed descendants to its height.
   Override those themes while the hamburger is visible so the drawer and its
   overlay stay sized to the viewport on both the homepage and inner pages. */
@media (max-width: 1023px) {
    #tm-navbar {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/* ── Category Bar ─────────────────────────────────────────────────────────── */
#tm-cat-bar {
    position: sticky;
    top: var(--tm-nav-height);
    z-index: 99;
    background: #fff;
    border-bottom: 1px solid var(--tm-border);
    height: var(--tm-cat-height);
    display: flex;
    align-items: center;
    overflow-x: auto;
}

#tm-cat-bar::-webkit-scrollbar {
    display: none;
}

/* Shared rounded navigation surfaces */
#tm-navbar button,
#tm-navbar input {
    border-radius: var(--tm-radius-control) !important;
}

#tm-navbar .tm-nav-pluzz,
#tm-navbar .tm-nav-orange,
#tm-navbar a[href$="/livestream"],
#tm-cat-bar .tm-cat-vote {
    border-radius: var(--tm-radius-pill) !important;
}

#tm-navbar a[href$="/livestream"] > span {
    border-radius: 50% !important;
}

#tm-navbar [aria-haspopup="true"] > span {
    border-radius: var(--tm-radius-pill) !important;
}

#tm-awards-menu,
#tm-cart-panel {
    overflow: hidden;
    border-radius: var(--tm-radius-card) !important;
}

#tm-awards-menu a,
#tm-cart-panel a,
#tm-cart-panel button,
#tm-mobile-menu a,
#tm-mobile-menu button,
#tm-mobile-menu input {
    border-radius: var(--tm-radius-control) !important;
}

#tm-awards-menu a > span {
    border-radius: 50% !important;
}

#tm-mobile-menu {
    overflow-x: hidden;
    border-radius: 0 var(--tm-radius-banner) var(--tm-radius-banner) 0 !important;
}

#tm-cat-bar .tm-cat-scroll {
    gap: 6px !important;
}

#tm-cat-bar .tm-cat-link {
    height: 32px !important;
    padding: 0 14px !important;
    border-bottom: 0 !important;
    border-radius: var(--tm-radius-pill) !important;
}

#tm-cat-bar .tm-cat-link:hover,
#tm-cat-bar .tm-cat-link[aria-current="page"] {
    background: rgba(247, 49, 69, 0.1);
}

.tm-cat-link {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--tm-text-muted);
    padding: 0 14px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.tm-cat-link:hover,
.tm-cat-link.active {
    color: var(--tm-text);
    border-bottom-color: var(--tm-primary);
}

/* ── Logo ─────────────────────────────────────────────────────────────────── */
.tm-logo {
    font-family: 'Republica Minor', 'Graphik', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    color: #fff;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.tm-logo span {
    color: var(--tm-primary);
}

/* ── Breaking News Banner ─────────────────────────────────────────────────── */
[data-social-link][hidden],
[data-social-widget][hidden] {
    display: none !important;
}

.tm-breaking-banner {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--tm-primary);
    padding: 0;
    overflow: hidden;
    height: 36px;
    border-radius: var(--tm-radius-control);
}

.tm-breaking-label {
    background: #000;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.tm-breaking-ticker {
    flex: 1;
    overflow: hidden;
}

.tm-breaking-ticker-inner {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-scroll 45s linear infinite;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

.tm-breaking-banner:hover .tm-breaking-ticker-inner {
    animation-play-state: paused;
}

/* The markup renders the headline list twice, so shifting by exactly half the
   element loops seamlessly and the first headline is on screen immediately.
   Translating by 100% instead offsets by the element's own width — which for a
   nowrap list of headlines is several thousand pixels — leaving the bar blank
   for the best part of a minute before anything scrolls into view. */
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── Card System ──────────────────────────────────────────────────────────── */
.tm-card {
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-card);
    background: #fff;
    transition: border-color 0.2s;
    overflow: hidden;
}

.tm-card:hover {
    border-color: #bbb;
}

.tm-card-img-wrap {
    overflow: hidden;
}

.tm-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}

.tm-card:hover .tm-card-img {
    transform: scale(1.04);
}

.tm-card-body {
    padding: 14px;
}

.tm-card-title {
    font-weight: 500;
    line-height: 1.3;
    color: var(--tm-text);
    transition: color 0.15s;
}

.tm-card:hover .tm-card-title {
    color: var(--tm-primary);
}

/* ── Section Headers ──────────────────────────────────────────────────────── */
.tm-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--tm-border);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.tm-section-title {
    font-family: 'Republica Minor', 'Graphik', sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    font-synthesis: none;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    position: relative;
    padding-left: 14px;
    color: var(--tm-text);
}

.tm-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--tm-primary);
}

.tm-section-title-lg {
    font-family: 'Republica Minor', 'Graphik', sans-serif;
    font-size: 0.94rem;
    font-weight: 700;
    font-synthesis: none;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    position: relative;
    padding-left: 14px;
    color: var(--tm-text);
}

.tm-section-title-lg::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--tm-primary);
}

.tm-section-link {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tm-text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.tm-section-link:hover {
    color: var(--tm-primary);
}

/* ── Category Tags & Meta ─────────────────────────────────────────────────── */
.tm-category-tag {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tm-primary);
    text-decoration: none;
    transition: opacity 0.15s;
}

.tm-category-tag:hover {
    opacity: 0.75;
}

.tm-meta {
    font-size: 0.72rem;
    color: var(--tm-text-muted);
}

/* ── Load More Button ─────────────────────────────────────────────────────── */
.tm-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 36px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: #fff;
    color: var(--tm-text);
    border: 2px solid var(--tm-text);
    border-radius: var(--tm-radius-pill);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.tm-load-more-btn:hover:not(:disabled) {
    background: var(--tm-text);
    color: #fff;
}

.tm-load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.tm-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    border-radius: var(--tm-radius-pill);
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.tm-btn-primary {
    background: var(--tm-primary);
    color: #fff;
}

.tm-btn-primary:hover {
    background: var(--tm-primary-dark);
    color: #fff;
}

.tm-btn-outline {
    background: transparent;
    color: var(--tm-text);
    border: 2px solid var(--tm-text);
}

.tm-btn-outline:hover {
    background: var(--tm-text);
    color: #fff;
}

.tm-btn-sm {
    padding: 6px 14px;
    font-size: 0.68rem;
}

.tm-btn-ghost {
    background: transparent;
    color: var(--tm-text-muted);
    border: none;
    padding: 8px 12px;
}

.tm-btn-ghost:hover {
    color: var(--tm-text);
    background: var(--tm-border);
}

/* ── Hero Overlay ─────────────────────────────────────────────────────────── */
.tm-hero-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

/* ── Billboard Hero ───────────────────────────────────────────────────────── */
.tm-hero-billboard {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem 0;
    border-bottom: 1px solid var(--tm-border);
}

.tm-hero-grid {
    display: grid;
    grid-template-columns: 195px 1fr 270px;
    gap: 0;
    align-items: stretch;
    padding: 20px 0 24px;
}

/* ─ Left live column ─ */
.tm-hero-left {
    border-right: 1px solid var(--tm-border);
    padding-right: 20px;
    align-self: stretch;
}

.tm-hero-live-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 20px;
}

.tm-live-card.tm-live-tv {
    min-height: 10rem;
    max-height: 18rem;
}
.tm-live-card.tm-live-radio {
    min-height: 5rem;
    max-height: 12rem;
}

/* Live card shared */
.tm-live-card {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #111;
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 140px;
    cursor: pointer;
}

.tm-live-card-bg {
    position: absolute;
    inset: 0;
    background: #0c0203;
    overflow: hidden;
    transition: transform 0.5s ease;
}

/* Warm aurora orbs — red/orange/yellow brand palette */
.tm-live-card-bg::before {
    content: '';
    position: absolute;
    inset: -60%;
    border-radius: 40%;
    background:
        radial-gradient(ellipse 80% 70% at 35% 45%, rgba(247,49,69,0.65)  0%, transparent 60%),
        radial-gradient(ellipse 65% 55% at 72% 65%, rgba(255,107,2,0.50)  0%, transparent 55%),
        radial-gradient(ellipse 45% 40% at 55% 18%, rgba(255,219,1,0.22)  0%, transparent 50%);
    animation: tmLiveOrbDrift 9s ease-in-out infinite alternate;
    will-change: transform;
}

/* Subtle film-grain noise overlay */
.tm-live-card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.25;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 300px;
    mix-blend-mode: overlay;
}

@keyframes tmLiveOrbDrift {
    0%   { transform: scale(1)    translate(0%,  0%); }
    25%  { transform: scale(1.06) translate(4%, -3%); }
    50%  { transform: scale(0.97) translate(-3%, 5%); }
    75%  { transform: scale(1.04) translate(6%,  2%); }
    100% { transform: scale(1.08) translate(-2%,-5%); }
}

.tm-live-tv:hover .tm-live-card-bg {
    transform: scale(1.05);
}

.tm-live-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(0,0,0,0.92) 0%,
        rgba(0,0,0,0.4)  55%,
        transparent      100%);
}

/* Radio card — cool purple/blue aurora base */
.tm-live-card.tm-live-radio {
    background: #050710;
}

.tm-live-card.tm-live-radio::before {
    content: '';
    position: absolute;
    inset: -60%;
    border-radius: 40%;
    background:
        radial-gradient(ellipse 85% 65% at 25% 55%, rgba(113,24,214,0.55) 0%, transparent 55%),
        radial-gradient(ellipse 70% 60% at 75% 30%, rgba(78,197,255,0.38) 0%, transparent 50%),
        radial-gradient(ellipse 55% 45% at 50% 82%, rgba(247,49,69,0.28)  0%, transparent 45%);
    z-index: 0;
    animation: tmRadioOrbDrift 11s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes tmRadioOrbDrift {
    0%   { transform: scale(1)    translate(0%,  0%); }
    33%  { transform: scale(1.08) translate(-5%, 4%); }
    66%  { transform: scale(0.94) translate( 4%,-6%); }
    100% { transform: scale(1.05) translate(-3%, 3%); }
}

/* Reduce opacity so the art shows through */
.tm-live-card-overlay--radio {
    background: linear-gradient(145deg, rgba(5,7,16,0.84) 0%, rgba(12,5,8,0.76) 100%);
}

.tm-live-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 14px;
}

/* LIVE badge */
.tm-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--tm-red);
    border: 1px solid rgba(247,49,69,0.45);
    padding: 3px 8px 3px 6px;
    line-height: 1;
}

.tm-live-dot {
    width: 5px;
    height: 5px;
    background: var(--tm-red);
    border-radius: 50%;
    flex-shrink: 0;
    animation: tm-dot-pulse 1.4s ease-in-out infinite;
}

@keyframes tm-dot-pulse {
    0%, 100% { opacity: 1;   transform: scale(1);   }
    50%       { opacity: 0.3; transform: scale(0.65); }
}

/* TV play button */
.tm-live-play-wrap {
    width: 38px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
}

.tm-live-tv:hover .tm-live-play-wrap {
    border-color: var(--tm-primary);
    background: rgba(247,49,69,0.18);
}

.tm-live-play-icon {
    width: 18px;
    height: 18px;
    color: #fff;
    margin-left: 3px;
}

.tm-live-card-name {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}

.tm-live-watch-cta {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    transition: color 0.2s;
}

.tm-live-tv:hover .tm-live-watch-cta {
    color: rgba(255,255,255,0.8);
}

/* Radio equaliser bars */
.tm-radio-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 22px;
}

.tm-radio-bars span {
    width: 3px;
    background: var(--tm-primary);
    opacity: 0.55;
    transition: height 0.3s;
}
.tm-radio-bars span:nth-child(1) { height: 7px; }
.tm-radio-bars span:nth-child(2) { height: 14px; }
.tm-radio-bars span:nth-child(3) { height: 9px; }
.tm-radio-bars span:nth-child(4) { height: 17px; }
.tm-radio-bars span:nth-child(5) { height: 5px; }

.tm-radio-bars.active span {
    opacity: 1;
    animation: tm-eq 0.75s infinite ease-in-out alternate;
}
.tm-radio-bars.active span:nth-child(1) { animation-delay: 0.00s; }
.tm-radio-bars.active span:nth-child(2) { animation-delay: 0.10s; }
.tm-radio-bars.active span:nth-child(3) { animation-delay: 0.20s; }
.tm-radio-bars.active span:nth-child(4) { animation-delay: 0.05s; }
.tm-radio-bars.active span:nth-child(5) { animation-delay: 0.15s; }

@keyframes tm-eq {
    from { height: 3px; }
    to   { height: 20px; }
}

/* Radio listen button */
.tm-live-radio-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: var(--tm-primary);
    color: #000;
    border: none;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    line-height: 1;
    transition: background 0.18s;
}

.tm-live-radio-btn:hover {
    background: var(--tm-primary-dark);
}

/* ─ Mini card styles (kept for other uses) ─ */
.tm-hero-mini-card {
    display: flex;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--tm-border);
    text-decoration: none;
    color: inherit;
}

.tm-hero-mini-img {
    width: 86px;
    height: 66px;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
}

.tm-hero-mini-headline {
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--tm-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─ Center main story ─ */
.tm-hero-center {
    padding: 0 24px;
}

.tm-hero-main-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tm-hero-main-img-wrap {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    line-height: 0;
}

.tm-hero-main-img {
    width: 100%;
    height: 25rem;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.tm-hero-main-link:hover .tm-hero-main-img {
    transform: scale(1.025);
}

.tm-hero-main-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--tm-primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 5px 12px;
    line-height: 1;
}

.tm-hero-main-caption {
    padding-top: 14px;
}

.tm-hero-main-headline {
    font-family: 'Republica Minor', 'Graphik', sans-serif;
    font-size: clamp(1.4rem, 2.05vw, 1.88rem);
    font-weight: 700;
    font-synthesis: none;
    line-height: 1.08;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--tm-text);
    margin: 4px 0 10px;
    transition: color 0.15s;
}

.tm-hero-main-link:hover .tm-hero-main-headline {
    color: var(--tm-primary);
}

/* ─ Right latest list ─ */
.tm-hero-right {
    border-left: 1px solid var(--tm-border);
    padding-left: 20px;
    align-self: stretch;
}

.tm-hero-latest-item {
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid var(--tm-border);
    text-decoration: none;
    color: inherit;
}

.tm-hero-latest-headline {
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--tm-text);
    margin: 2px 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}

.tm-hero-latest-item:hover .tm-hero-latest-headline {
    color: var(--tm-primary);
}

.tm-hero-latest-item .tm-category-tag {
    color: var(--tm-text-muted);
}

/* ─ Hero responsive ─ */
@media (max-width: 1024px) {
    .tm-hero-grid {
        grid-template-columns: 155px 1fr 230px;
    }
    .tm-hero-live-col { padding-right: 14px; }
    .tm-hero-center   { padding: 0 14px; }
    .tm-hero-right    { padding-left: 14px; }
    .tm-hero-main-img { height: 300px; }
}

@media (max-width: 768px) {
    .tm-hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .tm-hero-left {
        display: flex;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--tm-border);
        padding-right: 0;
        padding-bottom: 16px;
        margin-bottom: 4px;
        gap: 2px;
    }
    .tm-hero-live-col { padding-right: 0; }
    .tm-live-card     { min-height: 110px; }
    .tm-hero-center {
        padding: 0;
        border-left: none;
    }
    .tm-hero-right {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid var(--tm-border);
        padding-top: 16px;
        margin-top: 8px;
    }
    .tm-hero-main-img { height: 240px; }
}

/* ── Horizontal Scroll Strip ──────────────────────────────────────────────── */
.tm-scroll-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.tm-scroll-strip::-webkit-scrollbar {
    display: none;
}

.tm-scroll-item {
    scroll-snap-align: start;
    flex-shrink: 0;
}


/* ── Strip news card ──────────────────────────────────────────────────────── */
.tm-news-card {
    text-decoration: none;
    color: inherit;
    display: block;
    background: #fff;
    overflow: hidden;
    border-radius: var(--tm-radius-card);
}

.tm-news-card-thumb {
    position: relative;
    overflow: hidden;
    height: 190px;
}

.tm-news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.45s ease;
}

.tm-news-card:hover .tm-news-card-thumb img {
    transform: scale(1.04);
}

.tm-news-card-date-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    background: rgba(0,0,0,0.48);
    padding: 2px 7px;
    border-radius: var(--tm-radius-pill);
}

.tm-news-card-cats {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    flex-wrap: wrap;
}

.tm-news-card-cat {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 3px 8px;
    border-radius: var(--tm-radius-pill);
}

.tm-news-card-cat-sep {
    display: inline-flex;
    align-items: center;
    background: rgba(0,0,0,0.55);
    color: rgba(255,255,255,0.7);
    padding: 3px 4px;
    font-size: 0.58rem;
    font-weight: 700;
}

.tm-news-card-body {
    padding: 10px 0 0;
}

.tm-news-card-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--tm-text);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}

.tm-news-card:hover .tm-news-card-title {
    color: var(--tm-primary);
}

.tm-news-card-brief {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--tm-text-muted);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tm-news-card-author {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--tm-text-muted);
}

.tm-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.tm-scroll-btn:hover {
    background: var(--tm-primary);
}

/* ── Nominees Bar ─────────────────────────────────────────────────────────── */
.tm-nominees-bar {
    background: #000;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tm-vote-btn {
    background: var(--tm-primary);
    color: #fff;
    padding: 6px 16px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--tm-radius-pill);
    transition: background 0.2s;
}

.tm-vote-btn:hover {
    background: var(--tm-primary-dark);
    color: #fff;
}

/* ── Widgets ──────────────────────────────────────────────────────────────── */
.tm-widget {
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-card);
    padding: 20px;
    background: #fff;
}

.tm-widget-title {
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--tm-primary);
    padding-bottom: 10px;
    margin-bottom: 16px;
    color: var(--tm-text);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
#tm-footer {
    background: #111;
    color: #fff;
    padding: 48px 0 24px;
}

#tm-footer-bottom {
    background: #000;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tm-footer-heading {
    font-size: 0.57rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.tm-footer-link {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.82rem;
    display: block;
    padding: 3px 0;
    transition: color 0.15s;
}

.tm-footer-link:hover {
    color: #fff;
}

.tm-footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.tm-footer-social:hover {
    background: var(--tm-primary);
    color: #fff;
}

/* ── Form Inputs ──────────────────────────────────────────────────────────── */
.tm-input {
    width: 100%;
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-control);
    padding: 10px 14px;
    font-size: 0.9rem;
    background: #fff;
    color: var(--tm-text);
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.tm-input:focus {
    border-color: var(--tm-primary);
}

.tm-input::placeholder {
    color: var(--tm-text-muted);
}

.tm-input-dark {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.tm-input-dark:focus {
    border-color: var(--tm-primary);
}

.tm-input-dark::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* ── Subscription Section ─────────────────────────────────────────────────── */
.tm-subscription {
    background: var(--tm-primary);
    padding: 48px 0;
}

.tm-subscription .tm-input {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.2);
    color: #fff;
}

.tm-subscription .tm-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* ── Video Player Embed Wrapper ───────────────────────────────────────────── */
.tm-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    border-radius: var(--tm-radius-card);
}

.tm-video-embed iframe,
.tm-video-embed video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Thumbnail poster */
.tm-video-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}

.tm-video-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tm-video-poster:hover .tm-video-poster-img {
    transform: scale(1.03);
}

/* Reusable advert surfaces */
.tm-ad-slot--wide img {
    height: clamp(72px, 9vw, 122px) !important;
    max-width: 1280px;
    margin: 0 auto;
}

.tm-ad-banner > div {
    overflow: hidden;
}

.tm-ad-banner--horizontal-rectangle > div {
    border-radius: var(--tm-radius-banner) !important;
}

.tm-ad-banner--square > div,
.tm-ad-banner--vertical-rectangle > div {
    border-radius: var(--tm-radius-card) !important;
}

.tm-ad-banner--circle > div {
    border-radius: 50% !important;
}

.tm-video-poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}

/* Big play button */
.tm-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    width: 72px;
    height: 72px;
    background: #fff;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.tm-video-play-btn::before,
.tm-video-play-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50% !important;
    border: 2px solid rgba(255,255,255,0.6);
    animation: tmPlaySonar 1.8s ease-out infinite;
    pointer-events: none;
}
.tm-video-play-btn::after { animation-delay: 0.9s; }

.tm-video-poster:hover .tm-video-play-btn {
    transform: translate(-50%, -50%) scale(1.08);
}

/* Category badge on poster */
.tm-video-cat-badge {
    position: absolute;
    bottom: 12px;
    left: 0;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--tm-primary);
    color: #fff;
    padding: 3px 10px;
}

/* Info strip below player */
.tm-video-info {
    margin-top: 14px;
    padding-bottom: 4px;
}

.tm-video-info-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.tm-video-info-cat {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tm-primary);
}

.tm-video-info-dot {
    color: rgba(255,255,255,0.2);
    font-size: 0.7rem;
}

.tm-video-info-views,
.tm-video-info-date {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.4);
}

.tm-video-info-title {
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    margin: 0 0 6px;
}

.tm-video-info-author {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

/* ── Billboard-style card grid section (Most Viewed / Trending) ───────────── */
.tm-card-grid-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.tm-card-grid-header-title {
    font-family: 'Republica Minor', 'Graphik', sans-serif;
    font-size: 0.73rem;
    font-weight: 700;
    font-synthesis: none;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--tm-text);
}

.tm-card-grid-header-rule {
    flex: 1;
    height: 2px;
    background: var(--tm-text);
}

.tm-card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .tm-card-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .tm-card-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ── More News List (Billboard style) ────────────────────────────────────── */
.tm-more-news-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 4px;
}

.tm-more-news-header-title {
    font-family: 'Republica Minor', 'Graphik', sans-serif;
    font-size: 0.73rem;
    font-weight: 700;
    font-synthesis: none;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--tm-text);
}

.tm-more-news-rule {
    flex: 1;
    height: 2px;
    background: var(--tm-text);
}

.tm-more-news-item {
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--tm-border);
    text-decoration: none;
    color: inherit;
}

.tm-more-news-item:first-child {
    border-top: 1px solid var(--tm-border);
}

.tm-more-news-thumb {
    flex-shrink: 0;
    width: 185px;
    height: 115px;
    overflow: hidden;
    background: var(--tm-border);
    border-radius: var(--tm-radius-control);
}

.tm-more-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tm-more-news-item:hover .tm-more-news-thumb img {
    transform: scale(1.04);
}

.tm-more-news-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.tm-more-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tm-more-news-cats {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.tm-more-news-cat {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tm-primary);
}

.tm-more-news-cat-sep {
    font-size: 0.58rem;
    color: var(--tm-text-muted);
}

.tm-more-news-time {
    font-size: 0.62rem;
    color: var(--tm-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.tm-more-news-title {
    font-size: 1.03rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--tm-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}

.tm-more-news-item:hover .tm-more-news-title {
    color: var(--tm-primary);
}

.tm-more-news-author {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tm-text-muted);
}

/* Two-column layout */
.tm-more-news-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* Social sidebar */
.tm-social-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.tm-social-widget {
    border: 1px solid var(--tm-border);
    overflow: hidden;
    border-radius: var(--tm-radius-card);
}

.tm-social-widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--tm-border);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--tm-bg);
}

.tm-tiktok-follow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #000;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 16px;
    text-decoration: none;
    transition: background 0.2s;
}

.tm-tiktok-follow:hover {
    background: #111;
}

@media (max-width: 1024px) {
    .tm-more-news-layout {
        grid-template-columns: 1fr;
    }
    .tm-social-sidebar {
        display: none;
    }
}

@media (max-width: 640px) {
    .tm-more-news-thumb {
        width: 110px;
        height: 80px;
    }
    .tm-more-news-title {
        font-size: 0.85rem;
    }
}

/* ── Category Page Layout ─────────────────────────────────────────────────── */
.tm-cat-main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.tm-cat-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (max-width: 1024px) {
    .tm-cat-main-layout {
        grid-template-columns: 1fr;
    }
    .tm-cat-sidebar {
        display: none;
    }
}

/* ── Live Badge ───────────────────────────────────────────────────────────── */
.tm-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--tm-primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 10px;
}

.tm-live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    /* Play control remains intentionally circular within the shared radius system. */
    animation: tm-pulse 1.5s infinite;
}

@keyframes tm-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* ── Table of Contents ────────────────────────────────────────────────────── */
.tm-toc {
    border: 1px solid var(--tm-border);
    padding: 20px;
    background: var(--tm-bg);
}

.tm-toc-title {
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--tm-text);
}

.tm-toc ol,
.tm-toc ul {
    margin: 0;
    padding-left: 18px;
}

.tm-toc li {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--tm-text-light);
}

.tm-toc a {
    color: var(--tm-text-light);
    text-decoration: none;
    transition: color 0.15s;
}

.tm-toc a:hover {
    color: var(--tm-primary);
}

/* ── Article Body ─────────────────────────────────────────────────────────── */
.tm-article-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #222;
}

.tm-article-body h2,
.tm-article-body h3 {
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--tm-text);
}

.tm-article-body h2 { font-size: 1.4rem; }
.tm-article-body h3 { font-size: 1.13rem; }

.tm-article-body p {
    margin-bottom: 1.4rem;
}

.tm-article-body img {
    width: 100%;
    height: auto;
}

.tm-article-body blockquote {
    border-left: 4px solid var(--tm-primary);
    padding-left: 20px;
    color: var(--tm-text-light);
    font-style: italic;
    margin: 2rem 0;
}

.tm-article-body ul,
.tm-article-body ol {
    padding-left: 22px;
    margin-bottom: 1.4rem;
}

.tm-article-body li {
    margin-bottom: 0.4rem;
}

.tm-article-body a {
    color: var(--tm-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Template-specific body modifiers ────────────────────────────────────── */

/* Standard: drop-cap on opening paragraph */
.tm-article-body--standard > p:first-of-type::first-letter {
    font-size: 3.8rem;
    font-weight: 900;
    float: left;
    line-height: 0.88;
    margin: 0.05em 0.12em 0 0;
    color: var(--tm-primary);
}

/* Editorial: slightly larger body type + left-bordered h2 headings */
.tm-article-body--editorial {
    font-size: 1.08rem;
    line-height: 2;
}
.tm-article-body--editorial h2 {
    border-left: 4px solid var(--tm-primary);
    padding-left: 14px;
}

/* ── Hero lede (italic summary before body) ──────────────────────────────── */
.tm-article-hero-lede {
    font-size: 1.18rem;
    line-height: 1.78;
    color: var(--tm-text-light);
    font-style: italic;
    border-left: 4px solid var(--tm-primary);
    padding: 14px 18px;
    background: var(--tm-bg);
    margin-bottom: 28px;
}

/* ── Editorial summary intro block ──────────────────────────────────────── */
.tm-article-editorial-intro {
    font-size: 1.15rem;
    line-height: 1.72;
    color: var(--tm-text);
    font-weight: 500;
    border-left: 5px solid var(--tm-primary);
    padding: 18px 22px;
    background: #fff6f6;
    margin-bottom: 28px;
}

/* ── Editorial author card ───────────────────────────────────────────────── */
.tm-author-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border: 1px solid var(--tm-border);
    background: var(--tm-bg);
    margin-top: 36px;
    margin-bottom: 8px;
}
.tm-author-card .tm-author-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--tm-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    flex-shrink: 0;
    text-transform: uppercase;
}
.tm-author-card .tm-author-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tm-text-muted);
    margin-bottom: 3px;
}
.tm-author-card .tm-author-name {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--tm-text);
    line-height: 1.2;
}
.tm-author-card .tm-author-date {
    font-size: 0.78rem;
    color: var(--tm-text-muted);
    margin-top: 3px;
}

/* ── Ranking Numbers (most-read lists) ────────────────────────────────────── */
.tm-rank-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--tm-border);
    line-height: 1;
    min-width: 2rem;
}

/* ── Award Nominee Card ───────────────────────────────────────────────────── */
.tm-nominee-card {
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-card);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}

.tm-nominee-card.selected {
    border-color: var(--tm-primary);
    border-width: 2px;
}

.tm-nominee-card:hover {
    border-color: #bbb;
}

/* ── Responsive Utility — Hide Scrollbars ─────────────────────────────────── */
.tm-no-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tm-no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ── Overlay / Modal Backdrop ─────────────────────────────────────────────── */
.tm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 200;
}

/* ── Dropdown ─────────────────────────────────────────────────────────────── */
.tm-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--tm-border);
    z-index: 150;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-radius: var(--tm-radius-card);
}

.tm-dropdown-item {
    display: block;
    padding: 10px 16px;
    font-size: 0.82rem;
    color: var(--tm-text);
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

.tm-dropdown-item:hover {
    background: var(--tm-bg);
}

/* ── Search Bar ───────────────────────────────────────────────────────────── */
.tm-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.tm-search-input {
    width: 100%;
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-control);
    padding: 9px 40px 9px 14px;
    font-size: 0.88rem;
    background: #fff;
    color: var(--tm-text);
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.tm-search-input:focus {
    border-color: var(--tm-primary);
}

.tm-search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 38px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--tm-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

.tm-search-btn:hover {
    color: var(--tm-primary);
}

/* ── Pagination ───────────────────────────────────────────────────────────── */
.tm-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.tm-page-btn {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--tm-border);
    background: #fff;
    color: var(--tm-text);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    padding: 0 8px;
}

.tm-page-btn:hover,
.tm-page-btn.active {
    background: var(--tm-primary);
    border-color: var(--tm-primary);
    color: #fff;
}

.tm-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Tag Pills ────────────────────────────────────────────────────────────── */
.tm-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid var(--tm-border);
    color: var(--tm-text-muted);
    text-decoration: none;
    background: #fff;
    transition: all 0.15s;
}

.tm-tag:hover {
    border-color: var(--tm-primary);
    color: var(--tm-primary);
}

/* ── Divider ──────────────────────────────────────────────────────────────── */
.tm-divider {
    border: none;
    border-top: 1px solid var(--tm-border);
    margin: 24px 0;
}

.tm-divider-bold {
    border-top-width: 2px;
    border-top-color: var(--tm-text);
}

/* ── Author Block ─────────────────────────────────────────────────────────── */
.tm-author-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--tm-border);
    border-bottom: 1px solid var(--tm-border);
}

.tm-author-avatar {
    width: 44px;
    height: 44px;
    object-fit: cover;
    flex-shrink: 0;
    /* circle exception applied via .tm-avatar class */
}

.tm-author-name {
    font-size: 0.77rem;
    font-weight: 600;
    color: var(--tm-text);
}

.tm-author-role {
    font-size: 0.7rem;
    color: var(--tm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Share Bar ────────────────────────────────────────────────────────────── */
.tm-share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tm-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s;
    color: #fff;
}

.tm-share-btn:hover {
    opacity: 0.85;
}

.tm-share-btn.facebook  { background: #1877f2; }
.tm-share-btn.twitter   { background: #1da1f2; }
.tm-share-btn.whatsapp  { background: #25d366; }
.tm-share-btn.copy-link { background: #555; }

/* ── Alert / Notice Bars ──────────────────────────────────────────────────── */
.tm-alert {
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tm-alert-info    { background: #e8f4ff; color: #0a4a80; border-left: 4px solid #1877f2; }
.tm-alert-success { background: #eafaf1; color: #0a5c2e; border-left: 4px solid #28a745; }
.tm-alert-warning { background: #fff8e1; color: #7a4a00; border-left: 4px solid #ffc107; }
.tm-alert-error   { background: #fdf2f2; color: #7a1a1a; border-left: 4px solid var(--tm-primary); }

/* ── Skeleton Loading ─────────────────────────────────────────────────────── */
.tm-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: tm-skeleton-shimmer 1.4s infinite;
}

@keyframes tm-skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Sticky Sidebar ───────────────────────────────────────────────────────── */
.tm-sticky-sidebar {
    position: sticky;
    top: calc(var(--tm-nav-height) + var(--tm-cat-height) + 16px);
}

/* ── Image Caption ────────────────────────────────────────────────────────── */
.tm-caption {
    font-size: 0.75rem;
    color: var(--tm-text-muted);
    margin-top: 6px;
    font-style: italic;
    line-height: 1.5;
}

/* ── Aspect Ratio Helpers ─────────────────────────────────────────────────── */
.tm-ratio-16x9 { aspect-ratio: 16 / 9; overflow: hidden; }
.tm-ratio-4x3  { aspect-ratio: 4  / 3; overflow: hidden; }
.tm-ratio-1x1  { aspect-ratio: 1  / 1; overflow: hidden; }
.tm-ratio-3x2  { aspect-ratio: 3  / 2; overflow: hidden; }

.tm-ratio-16x9 img,
.tm-ratio-4x3  img,
.tm-ratio-1x1  img,
.tm-ratio-3x2  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Container Helper ─────────────────────────────────────────────────────── */
.tm-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 768px) {
    .tm-container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    #tm-navbar {
        height: var(--tm-nav-height);
    }

    .tm-breaking-label {
        font-size: 0.6rem;
        padding: 0 10px;
    }

    .tm-card-body {
        padding: 10px;
    }

    .tm-section-title {
        font-size: 0.61rem;
    }
    .tm-section-title-lg {
        font-size: 0.8rem;
    }

    .tm-widget {
        padding: 14px;
    }

    #tm-footer {
        padding: 32px 0 20px;
    }
}

/* ── Play button utility — circle + sonar rings ──────────────────────────── */
/*
 * Usage:
 *   <div class="tm-play-btn">                  — 52 px white circle
 *   <div class="tm-play-btn tm-play-btn--lg">  — 72 px
 *   <div class="tm-play-btn tm-play-btn--primary"> — red fill
 *
 * Sonar rings appear automatically via ::before / ::after.
 * Place the element OUTSIDE any overflow:hidden ancestor so rings aren't clipped.
 */
.tm-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #fff;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.tm-play-btn--lg      { width: 72px;  height: 72px; }
.tm-play-btn--xl      { width: 88px;  height: 88px; }
.tm-play-btn--primary { background: var(--tm-primary); }
.tm-play-btn--dark    { background: #111; }

.tm-play-btn::before,
.tm-play-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    animation: tmPlaySonar 1.8s ease-out infinite;
    pointer-events: none;
}
.tm-play-btn::after { animation-delay: 0.9s; }

@keyframes tmPlaySonar {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(2.6); opacity: 0;   }
}

/* ── Skeleton shimmer (shared) ───────────────────────────────────────────── */
.tm-skel {
    background: linear-gradient(90deg,#ebebeb 25%,#d8d8d8 50%,#ebebeb 75%);
    background-size: 200% 100%;
    animation: tmSkelShimmer 1.5s infinite;
}
.tm-skel-dark {
    background: linear-gradient(90deg,#1a1a1a 25%,#252525 50%,#1a1a1a 75%);
    background-size: 200% 100%;
    animation: tmSkelShimmer 1.5s infinite;
}
@keyframes tmSkelShimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

/* ── Print ────────────────────────────────────────────────────────────────── */
@media print {
    #tm-navbar,
    #tm-cat-bar,
    #tm-footer,
    #tm-footer-bottom,
    .tm-nominees-bar,
    .tm-subscription,
    .tm-share-bar {
        display: none !important;
    }

    .tm-article-body {
        font-size: 12pt;
        line-height: 1.7;
    }
}
