/* TrotStar - Racing Today Streaming Skin Stylesheet */
:root {
    --rt-bg: #0c0f17;
    --rt-surface: #141824;
    --rt-card: #1c2233;
    --rt-card-hover: #242c42;
    --rt-gold: #c5a15a;
    --rt-gold-light: #e0be7a;
    --rt-purple-accent: #6c5ce7;
    --rt-red-live: #e74c3c;
    --rt-text: #ffffff;
    --rt-text-muted: #94a3b8;
    --rt-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body.racingtoday-skin {
    background-color: var(--rt-bg);
    color: var(--rt-text);
    font-family: var(--font-body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top Live Ticker */
.top-tv-ticker {
    background: #07090e;
    border-bottom: 1px solid var(--rt-border);
    padding: 7px 0;
    font-size: 0.8rem;
}

.ticker-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.ticker-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-pill-red {
    background: var(--rt-red-live);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.05em;
}

.pulse-ring {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: livePulse 1.2s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.ticker-text {
    color: #cbd5e1;
}

.ticker-link {
    color: var(--rt-gold);
    text-decoration: none;
    font-weight: 700;
}

/* Header & Logo */
.rt-header {
    background: rgba(12, 15, 23, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--rt-border);
}

.rt-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}

.rt-logo-area {
    display: flex;
    align-items: center;
}

.rt-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.rt-brand-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.rt-menu-list {
    display: flex;
    list-style: none;
    gap: 22px;
}

.rt-menu-list a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.rt-menu-list a:hover, .rt-menu-list li.selected a {
    color: var(--rt-gold);
}

.rt-btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 211, 102, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(37, 211, 102, 0.3);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.rt-btn-wa:hover {
    background: #25d366;
    color: #fff;
}

.rt-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.rt-burger span {
    width: 24px;
    height: 2px;
    background: #fff;
}

/* Hero Live Stage */
.hero-live-stage {
    padding: 30px 0 50px;
    background: radial-gradient(circle at 50% 20%, #1c263c 0%, var(--rt-bg) 80%);
}

.stage-card {
    background: var(--rt-surface);
    border: 1px solid var(--rt-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.stage-header {
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid var(--rt-border);
}

.live-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--rt-red-live);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.dot-live {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: livePulse 1s infinite;
}

.main-event-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 4px;
}

.event-meta {
    font-size: 0.82rem;
    color: var(--rt-text-muted);
}

.channel-switcher {
    display: flex;
    gap: 10px;
}

.chan-btn {
    background: var(--rt-card);
    border: 1px solid var(--rt-border);
    color: #cbd5e1;
    padding: 9px 16px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.chan-btn.active, .chan-btn:hover {
    background: var(--rt-gold);
    color: #0c0f17;
    border-color: var(--rt-gold);
}

/* 16:9 Video Frame */
.video-container-16-9 {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
}

.video-container-16-9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.stage-footer {
    padding: 14px 26px;
    background: #090c13;
    border-top: 1px solid var(--rt-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--rt-text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

.indicator-green {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    margin-right: 6px;
}

.share-pill {
    color: var(--rt-gold);
    text-decoration: none;
    font-weight: 700;
}

/* Section Title Bar (Racing Today Style) */
.rt-section {
    padding: 50px 0;
}

.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--rt-border);
    padding-bottom: 12px;
}

.section-title-bar h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.section-title-bar h2 a {
    color: #fff;
    text-decoration: none;
}

.more-link {
    color: var(--rt-gold);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Channels Grid */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.channel-card {
    background: var(--rt-surface);
    border: 1px solid var(--rt-border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.channel-card:hover {
    border-color: var(--rt-gold);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.chan-thumb {
    position: relative;
    height: 160px;
    background: #000;
}

.chan-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hd-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: var(--rt-gold);
    border: 1px solid var(--rt-gold);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
}

.chan-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--transition);
}

.channel-card:hover .chan-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 2rem;
    color: #fff;
}

.chan-meta {
    padding: 16px;
}

.chan-meta h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.chan-meta p {
    font-size: 0.78rem;
    color: var(--rt-text-muted);
}

/* Portrait Grid (Shows & Previews) */
.portrait-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.portrait-card {
    background: var(--rt-surface);
    border: 1px solid var(--rt-border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.portrait-card:hover {
    border-color: var(--rt-gold);
    transform: translateY(-4px);
}

.portrait-thumb {
    position: relative;
    height: 240px;
    background: #000;
}

.portrait-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.show-type {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--rt-gold);
    color: #0c0f17;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}

.show-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
}

.portrait-info {
    padding: 16px;
}

.portrait-info h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.35;
}

.portrait-info p {
    font-size: 0.8rem;
    color: var(--rt-text-muted);
    line-height: 1.45;
}

/* Landscape Grid (Latest Races) */
.landscape-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.landscape-card {
    background: var(--rt-surface);
    border: 1px solid var(--rt-border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.landscape-card:hover {
    border-color: var(--rt-gold);
    transform: translateY(-4px);
}

.landscape-thumb {
    position: relative;
    height: 170px;
}

.landscape-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quality-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: var(--rt-gold);
    border: 1px solid var(--rt-gold);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
}

.time-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
}

.landscape-meta {
    padding: 16px;
}

.landscape-meta h4 {
    font-size: 0.98rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.landscape-meta p {
    font-size: 0.8rem;
    color: var(--rt-text-muted);
}

/* Broadcast Partner Panel */
.broadcast-partner-section {
    background: #090c13;
    border-top: 1px solid var(--rt-border);
}

.partner-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--rt-surface);
    border: 1px solid var(--rt-border);
    border-radius: 10px;
    padding: 40px;
}

.rt-eyebrow {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--rt-gold);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 10px;
}

.panel-left h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.panel-left p {
    color: var(--rt-text-muted);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.check-list {
    list-style: none;
}

.check-list li {
    font-size: 0.92rem;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.partner-form-card {
    background: var(--rt-card);
    border: 1px solid var(--rt-border);
    border-radius: 8px;
    padding: 28px;
}

.partner-form-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 18px;
}

.form-item {
    margin-bottom: 14px;
}

.form-item label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--rt-text-muted);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    background: #0e121b;
    border: 1px solid var(--rt-border);
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.88rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--rt-gold);
}

.btn-gold-solid {
    background: var(--rt-gold);
    color: #0c0f17;
    font-weight: 800;
    padding: 11px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-gold-solid:hover {
    background: var(--rt-gold-light);
}

.form-alert {
    margin-top: 12px;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: center;
}

/* Footer */
.rt-footer {
    background: #06080c;
    border-top: 1px solid var(--rt-border);
    padding: 60px 0 30px;
}

.rt-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    height: 48px;
    margin-bottom: 14px;
}

.rt-footer-brand p {
    font-size: 0.88rem;
    color: var(--rt-text-muted);
    max-width: 420px;
    margin-bottom: 16px;
}

.rt-legal {
    font-size: 0.78rem;
    color: var(--rt-text-muted);
}

.rt-footer-col h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rt-footer-col ul {
    list-style: none;
}

.rt-footer-col li {
    margin-bottom: 8px;
}

.rt-footer-col a {
    color: var(--rt-text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}

.rt-footer-col a:hover {
    color: var(--rt-gold);
}

@media (max-width: 900px) {
    .channels-grid, .portrait-grid, .landscape-grid, .partner-panel, .rt-footer-grid {
        grid-template-columns: 1fr;
    }
    .rt-menu-list { display: none; }
    .rt-burger { display: flex; }
    .main-event-title { font-size: 1.3rem; }
}
