:root {
    color-scheme: light;
    --primary: #ff3d00;
    --secondary: #1e88e5;
    --bg: #f4f6fb;
    --text: #101526;
    --muted: #5f6578;
    --card-bg: #ffffff;
    --border: rgba(16, 21, 38, 0.08);
    --surface-alt: rgba(30, 56, 88, 0.05);
    --panel-bg: rgba(30, 56, 88, 0.05);
    --panel-border: rgba(16, 21, 38, 0.1);
    --card-muted-bg: rgba(30, 56, 88, 0.06);
    --card-strong-bg: rgba(30, 56, 88, 0.12);
    --card-border-strong: rgba(16, 21, 38, 0.12);
    --success: #2e7d32;
    --danger: #c62828;
    --badge-bg: rgba(16, 21, 38, 0.08);
    --badge-color: #101526;
    --admin-bg: linear-gradient(135deg, #e8ecff, #ffffff);
    --shadow: 0 10px 40px rgba(16, 21, 38, 0.08);
    --overlay-bg: rgba(16, 21, 38, 0.86);
    --overlay-slot-bg: rgba(16, 21, 38, 0.8);
    --card-glow: rgba(30, 136, 229, 0.12);
    --input-bg: rgba(255, 255, 255, 0.9);
    --input-text: var(--text);
    --input-border: rgba(16, 21, 38, 0.12);
    --button-secondary-bg: rgba(30, 56, 88, 0.08);
    --button-secondary-color: var(--text);
    --helper-text: #6b7084;
    --ad-border: rgba(16, 21, 38, 0.12);
    --alert-error-bg: rgba(198, 40, 40, 0.12);
    --alert-error-border: rgba(198, 40, 40, 0.28);
    --alert-success-bg: rgba(46, 125, 50, 0.12);
    --alert-success-border: rgba(46, 125, 50, 0.28);
}

:root[data-theme='dark'] {
    color-scheme: dark;
    --bg: #0c0f1d;
    --text: #f2f6ff;
    --muted: #8a90a5;
    --card-bg: #151a2c;
    --border: rgba(255, 255, 255, 0.08);
    --surface-alt: rgba(255, 255, 255, 0.05);
    --panel-bg: rgba(255, 255, 255, 0.04);
    --panel-border: rgba(255, 255, 255, 0.08);
    --card-muted-bg: rgba(255, 255, 255, 0.04);
    --card-strong-bg: rgba(255, 255, 255, 0.06);
    --card-border-strong: rgba(255, 255, 255, 0.1);
    --badge-bg: rgba(255, 255, 255, 0.12);
    --badge-color: #f2f6ff;
    --admin-bg: linear-gradient(135deg, #091026, #060711);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    --overlay-bg: rgba(12, 15, 29, 0.92);
    --overlay-slot-bg: rgba(0, 0, 0, 0.65);
    --card-glow: rgba(255, 255, 255, 0.04);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-text: var(--text);
    --input-border: rgba(255, 255, 255, 0.1);
    --button-secondary-bg: rgba(255, 255, 255, 0.08);
    --button-secondary-color: #f2f6ff;
    --helper-text: var(--muted);
    --ad-border: rgba(255, 255, 255, 0.08);
    --alert-error-bg: rgba(198, 40, 40, 0.2);
    --alert-error-border: rgba(198, 40, 40, 0.35);
    --alert-success-bg: rgba(46, 125, 50, 0.2);
    --alert-success-border: rgba(46, 125, 50, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

body.viewer {
    display: flex;
    flex-direction: column;
}

body.admin {
    background: var(--admin-bg);
}

.container {
    width: min(1280px, 94%);
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

header img.logo {
    max-height: 48px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    gap: 0.5rem;
    min-width: 0;
}

.theme-toggle .theme-toggle-icon {
    font-size: 1rem;
}

.theme-toggle .theme-toggle-label {
    font-size: 0.85rem;
    font-weight: 600;
}

a {
    color: var(--secondary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.card h2,
.card h3 {
    margin-top: 0;
    font-weight: 600;
}

label {
    display: block;
    margin: 0.75rem 0 0.35rem;
    font-size: 0.9rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

input[type="text"],
input[type="password"],
input[type="url"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: clamp(1.5%, 2.5vw, 4%);
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--input-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 1rem;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.25);
}

textarea {
    resize: vertical;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
    background: linear-gradient(135deg, #ff512f, #dd2476);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 81, 47, 0.35);
}

.button.secondary {
    background: var(--button-secondary-bg);
    color: var(--button-secondary-color);
    border: 1px solid var(--border);
}

.button.danger {
    background: var(--danger);
    color: #fff;
}

.button:hover {
    transform: translateY(-1px);
}

.button.full {
    width: 100%;
    margin-top: 1rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    color: var(--muted);
}

.checkbox input {
    width: 18px;
    height: 18px;
}

.alert {
    border-radius: 14px;
    padding: 1rem 1.4rem;
    margin-bottom: 1.5rem;
}

.muted {
    color: var(--muted);
}

.alert.error {
    background: var(--alert-error-bg);
    border: 1px solid var(--alert-error-border);
}

.alert.success {
    background: var(--alert-success-bg);
    border: 1px solid var(--alert-success-border);
}

.logout-form {
    margin: 0;
}

.grid {
    display: grid;
    gap: 1rem;
}

.matches details {
    background: var(--panel-bg);
    border-radius: 14px;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--panel-border);
}

.matches summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    list-style: none;
}

.matches summary::-webkit-details-marker {
    display: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--badge-bg);
    color: var(--badge-color);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.badge.live {
    background: #ff1744;
    color: #fff;
    font-weight: 700;
}

.match-form .actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.delete-form {
    margin-top: 0.5rem;
}

.helper-text {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--helper-text);
}

.pre-roll-list {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.pre-roll-item {
    border: 1px solid var(--panel-border);
    border-radius: clamp(1.5%, 2.5vw, 4%);
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
    background: var(--surface-alt);
    min-inline-size: 0;
}

.pre-roll-item legend {
    padding: 0 0.5rem;
    font-weight: 600;
}

.pre-roll-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.pre-roll-item .remove-pre-roll {
    justify-self: flex-start;
}

/* Admin - reklam alanları */
.ad-slot-list {
    display: grid;
    gap: 1rem;
}

.ad-slot-item summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: clamp(1.5%, 2.5vw, 4%);
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
}

.ad-slot-item summary::-webkit-details-marker {
    display: none;
}

.ad-slot-form {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: clamp(1.5%, 2.5vw, 4%);
    background: var(--surface-alt);
    border: 1px solid var(--panel-border);
    display: grid;
    gap: 0.75rem;
}

.ad-slot-form .actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.ad-slot-form .ad-field-html {
    display: none;
}

.ad-slot-form.show-html .ad-field-html {
    display: block;
}

.ad-slot-form.show-html .ad-field-image {
    display: none;
}

/* Viewer */
.viewer .layout {
    display: grid;
    grid-template-columns: clamp(12%, 18%, 22%) minmax(0, 1fr) clamp(12%, 18%, 22%);
    gap: 1.5rem;
    align-items: start;
}

.viewer .main-column {
    display: grid;
    gap: 1.5rem;
}

.viewer .player-card {
    position: relative;
}

.video-wrapper {
    position: relative;
    background: #000;
    border-radius: clamp(1%, 1.5vw, 2.5%);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    width: 100%;

    aspect-ratio: 16/9;
}

.video-wrapper video,
.video-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.ad-zone {
    display: grid;
    gap: 1rem;
}

.ad-rail {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.ad-slot {
    position: relative;
    border-radius: 16px;
    overflow: visible;
    background: var(--card-muted-bg);
    border: 1px solid var(--ad-border);
    padding: 0;
}

.ad-slot img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}



.ad-slot.type-html {
    padding: 1rem;
    background: var(--card-bg);
}

.ad-slot .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
/* reklam kapatma butonu */
.ad-slot .ad-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s ease;
    padding: 0;
    z-index: 10;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

/* Player overlay bottom-center specific close button sadece orta alt için ayar */
.player-overlay.bottom-center .ad-slot .ad-close {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(20px, 3vw, 28px);
    height: clamp(20px, 3vw, 28px);
    font-size: clamp(12px, 2vw, 16px);
}

.ad-slot .ad-close:hover {
    opacity: 1;
}

.ad-slot .ad-close span {
    pointer-events: none;
}

.ad-slot.is-hidden {
    display: none !important;
}


.ad-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 20;
    padding: 0;
    text-align: center;
    gap: 0;
    visibility: visible;
    opacity: 1;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.ad-overlay.hidden {
    display: none;
}

.ad-overlay video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    position: relative;
    z-index: 21;
    object-fit: cover;
}

.ad-progress {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
}

.skip-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 25;
    padding: 0.5rem 1.4rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    border: 2px solid #fff;
    cursor: pointer;
    transition: opacity 0.2s ease;
    font-size: 1rem;
    font-weight: bold;
    display: block;
    visibility: visible;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.skip-button.disabled,
.skip-button[disabled] {
    opacity: 0.6;
    pointer-events: none;
}

.ad-overlay-content {
    position: relative;
    z-index: 22;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    box-sizing: border-box;
}

.ad-counter {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.8;
}

.skip-button .skip-label {
    font-weight: 600;
}

.skip-button .skip-countdown {
    margin-left: 0.35rem;
    font-weight: 600;
}

.player-overlay {
    position: absolute;
    z-index: 5;
    display: grid;
    gap: 0.75rem;
}

.player-overlay.top-left {
    top: clamp(1%, 1.5vw, 3%);
    left: clamp(1%, 1.5vw, 3%);
    justify-items: start;
}

.player-overlay.top-right {
    top: clamp(1%, 1.5vw, 3%);
    right: clamp(1%, 1.5vw, 3%);
    justify-items: end;
}

.player-overlay.bottom-left {
    bottom: clamp(1%, 1.5vw, 3%);
    left: clamp(1%, 1.5vw, 3%);
    justify-items: start;
}

.player-overlay.bottom-right {
    bottom: clamp(1%, 1.5vw, 3%);
    right: clamp(1%, 1.5vw, 3%);
    justify-items: end;
}

.player-overlay.bottom-center {
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: min(400px, 90%);
    justify-items: center;
}

.player-overlay .ad-slot {
    background: transparent;
    border: none;
    padding: 0;
}

.player-overlay .ad-slot img {
    border-radius: 10px;
}

/* Custom player controls */
.custom-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: var(--panel-bg);
    border-top: 1px solid var(--panel-border);
}

.custom-controls .button {
    padding: 0.5rem 1rem;
}

.custom-controls .ctrl-live {
    font-weight: 800;
}

/* Loading overlay */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 15;
}

.loading-overlay.hidden {
    display: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Overlay controls inside video */
.controls-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    color: #fff;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.controls-overlay.hidden {
    opacity: 0;
}

/* CANLI Göstergesi - Sol alt köşe */
.live-indicator {
    position: absolute;
    bottom: clamp(1%, 1.25vw, 2.5%);
    left: clamp(1%, 1.25vw, 2.5%);
    display: flex;
    align-items: center;
    gap: clamp(0.25rem, 0.8vw, 0.5rem);
    background: rgba(0,0,0,0.6);
    padding: clamp(0.4rem, 1.2vw, 0.75rem) clamp(0.6rem, 1.5vw, 1.25rem);
    border-radius: 4px;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 40px;
    min-width: 40px;
}

.live-indicator.inactive {
    opacity: 0.4;
    background: rgba(0,0,0,0.3);
}

.live-dot {
    width: clamp(0.3rem, 1vw, 0.5rem);
    height: clamp(0.3rem, 1vw, 0.5rem);
    background: #ff1744;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.live-indicator.inactive .live-dot {
    background: #666;
    animation: none;
}

.live-text {
    font-size: 12px;
    font-weight: bold;
    color: #fff;
}

.live-indicator.inactive .live-text {
    color: #999;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Durdurma/Oynatma İkonu - Alt kontrol çubuğunun ortasına yakın */
.play-pause-btn {
    position: absolute;
    bottom: clamp(1%, 1.25vw, 2.5%);
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.6);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.play-pause-btn:hover {
    background: rgba(0,0,0,0.8);
    transform: translateX(-50%) scale(1.1);
}

.play-pause-btn .pause-icon {
    display: none;
}

.play-pause-btn.playing .play-icon {
    display: none;
}

.play-pause-btn.playing .pause-icon {
    display: block;
}

/* Sağ alt köşe kontrolleri */
.bottom-right-controls {
    position: absolute;
    bottom: clamp(1%, 1.25vw, 2.5%);
    right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.6);
    padding: clamp(0.4rem, 1.2vw, 0.75rem) clamp(0.6rem, 1.5vw, 1.25rem);
    border-radius: 4px;
    pointer-events: auto;
    height: 40px;
}

/* Ses Kontrolü - Line-based design */
.mute-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mute-btn:hover {
    background: rgba(255,255,255,0.2);
}

.volume-icon {
    position: relative;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-lines {
    position: absolute;
    width: 12px;
    height: clamp(0.3rem, 1vw, 0.5rem);
    display: flex;
    align-items: end;
    justify-content: space-between;
}

.volume-line {
    background: #fff;
    border-radius: 1px;
    transition: all 0.2s ease;
}

.line1 {
    width: 2px;
    height: 3px;
}

.line2 {
    width: 2px;
    height: 5px;
}

.line3 {
    width: 2px;
    height: 7px;
}

.volume-x {
    position: absolute;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mute-btn.muted .volume-lines {
    opacity: 0;
}

.mute-btn.muted .volume-x {
    opacity: 1;
}

/* Ses Seviyesi Çubuğu */
.volume-slider {
    width: 60px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Ekran Büyütme */
.fullscreen-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .video-wrapper {
        min-height: auto;
        aspect-ratio: 16/9;
        border-radius: clamp(1.5%, 2.5vw, 4%);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    }
    
    .player-overlay.bottom-center {
        bottom: 15px;
        width: min(350px, 85%);
    }
    
    .live-indicator {
        bottom: clamp(0.75%, 1vw, 2%);
        left: clamp(0.75%, 1vw, 2%);
        padding: clamp(0.35rem, 1vw, 0.65rem) clamp(0.5rem, 1.25vw, 1rem);
        gap: clamp(0.2rem, 0.6vw, 0.4rem);
        height: auto;
    }
    
    .live-dot {
        width: 6px;
        height: 6px;
    }
    
    .live-text {
        font-size: 10px;
    }
    
    .play-pause-btn {
        width: 36px;
        height: auto;
        font-size: 14px;
        bottom: clamp(0.75%, 1vw, 2%);
    }
    
    .bottom-right-controls {
        bottom: clamp(0.75%, 1vw, 2%);
        right: 8px;
        padding: clamp(0.35rem, 1vw, 0.65rem) clamp(0.5rem, 1.25vw, 1rem);
        gap: clamp(0.25rem, 0.8vw, 0.5rem);
        height: auto;
    }
    
    .mute-btn {
        width: 36px;
        height: auto;
        padding: 3px;
    }
    
    .volume-icon {
        width: 14px;
        height: 14px;
    }
    
    .volume-lines {
        width: 10px;
        height: 6px;
    }
    
    .line1 {
        width: 1.5px;
        height: 2px;
    }
    
    .line2 {
        width: 1.5px;
        height: 4px;
    }
    
    .line3 {
        width: 1.5px;
        height: 6px;
    }
    
    .volume-x {
        font-size: 10px;
    }
    
    .volume-slider {
        width: 50px;
        height: 3px;
    }
    
    .volume-slider::-webkit-slider-thumb {
        width: 10px;
        height: 10px;
    }
    
    .volume-slider::-moz-range-thumb {
        width: 10px;
        height: 10px;
    }
    
    .fullscreen-btn {
        width: 36px;
        height: auto;
        font-size: 14px;
        padding: 3px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 98%;
        padding: 0.5rem 0 1.5rem;
    }
    
    .player-card {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .player-overlay.bottom-center {
        bottom: 10px;
        width: min(300px, 80%);
    }
    
    .video-wrapper {
        min-height: auto;
        aspect-ratio: 16/9;
        border-radius: clamp(2%, 3.5vw, 5%);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .live-indicator {
        bottom: clamp(0.5%, 0.75vw, 1.5%);
        left: clamp(0.5%, 0.75vw, 1.5%);
        padding: clamp(0.25rem, 0.8vw, 0.5rem) clamp(0.4rem, 1vw, 0.8rem);
        gap: clamp(0.15rem, 0.5vw, 0.35rem);
        height: 32px;
        min-width: 32px;
    }
    
    .live-dot {
        width: 5px;
        height: 5px;
    }
    
    .live-text {
        font-size: 9px;
    }
    
    .play-pause-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
        bottom: clamp(0.5%, 0.75vw, 1.5%);
    }
    
    .bottom-right-controls {
        bottom: clamp(0.5%, 0.75vw, 1.5%);
        right: 6px;
        padding: clamp(0.25rem, 0.8vw, 0.5rem) clamp(0.4rem, 1vw, 0.8rem);
        gap: clamp(0.2rem, 0.6vw, 0.4rem);
        height: 32px;
    }
    
    .mute-btn {
        width: 32px;
        height: 32px;
        padding: 2px;
    }
    
    .volume-icon {
        width: 12px;
        height: 12px;
    }
    
    .volume-lines {
        width: clamp(0.3rem, 1vw, 0.5rem);
        height: 5px;
    }
    
    .line1 {
        width: 1px;
        height: 1.5px;
    }
    
    .line2 {
        width: 1px;
        height: 3px;
    }
    
    .line3 {
        width: 1px;
        height: 4.5px;
    }
    
    .volume-x {
        font-size: 8px;
    }
    
    .volume-slider {
        width: 40px;
        height: 2px;
    }
    
    .volume-slider::-webkit-slider-thumb {
        width: clamp(0.3rem, 1vw, 0.5rem);
        height: clamp(0.3rem, 1vw, 0.5rem);
    }
    
    .volume-slider::-moz-range-thumb {
        width: clamp(0.3rem, 1vw, 0.5rem);
        height: clamp(0.3rem, 1vw, 0.5rem);
    }
    
    .fullscreen-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 2px;
    }
    
    .skip-button {
        bottom: 15px;
        right: 15px;
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .ad-overlay {
        padding: 0;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .skip-button {
        bottom: 10px;
        right: 10px;
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .ad-overlay {
        padding: 0;
        gap: 0;
    }
}

.match-list {
    margin-top: 2rem;
}

.match-description {
    line-height: 1.6;
    color: var(--text);
    background: var(--card-muted-bg);
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid var(--panel-border);
}

.match-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    padding: 1rem;
    border-radius: 16px;
    background: var(--card-muted-bg);
    border: 1px solid var(--card-border-strong);
    margin-bottom: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px var(--card-glow);
}

.match-card img {
    width: 100%;
    border-radius: 14px;
}

.match-card h3 {
    margin: 0 0 0.5rem;
}

.match-card p {
    margin: 0;
    color: var(--muted);
}

.placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: repeating-linear-gradient(135deg, var(--surface-alt), var(--surface-alt) 10px, var(--card-muted-bg) 10px, var(--card-muted-bg) 20px);
}

.ad-zone-top,
.ad-zone-footer {
    width: min(1280px, 94%);
    margin: 0 auto 1.5rem;
}

.between-match {
    margin: 1rem 0;
}

.floating-ads {
    position: fixed;
    top: 20%;
    z-index: 20;
    display: grid;
    gap: 1rem;
    max-width: clamp(18%, 22vw, 28%);
}

.floating-ads.left {
    left: clamp(1%, 2vw, 3%);
}

.floating-ads.right {
    right: clamp(1%, 2vw, 3%);
}

@media (max-width: 960px) {
    .viewer .layout {
        grid-template-columns: 1fr;
    }

    .floating-ads {
        display: none;
    }
}

@media (max-width: 720px) {
    .container {
        width: 96%;
        padding: 1rem 0 2rem;
    }
    
    .match-card {
        grid-template-columns: 1fr;
    }
    
    .player-card {
        padding: 1rem;
    }
}

@media (max-width: 540px) {
    .ad-overlay {
        padding: 1rem;
    }

    .ad-overlay video {
        max-width: 100%;
    }
}

@media (max-width: 360px) {
    .video-wrapper {
        min-height: auto;
        aspect-ratio: 16/9;
        border-radius: clamp(2.5%, 4vw, 6%);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
}










