:root {
    --bg: #0d0d0f;
    --panel: #17171c;
    --panel-light: #22222a;
    --text: #f3f0e8;
    --muted: #a9a39a;
    --gold: #d6a847;
    --red: #b33a3a;
    --green: #3f8f57;
    --border: rgba(255, 255, 255, 0.09);
    --shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    background:
        radial-gradient(circle at top left, rgba(214, 168, 71, 0.13), transparent 35%),
        radial-gradient(circle at top right, rgba(179, 58, 58, 0.11), transparent 35%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
}

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

img, video {
    max-width: 100%;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(13, 13, 15, 0.78);
    border-bottom: 1px solid var(--border);
}


.site-logo-section {
    position: relative;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at top, rgba(214, 168, 71, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(13, 13, 15, 0.92), rgba(13, 13, 15, 0.62));
}

.site-logo-bar {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.site-logo {
    display: block;
    width: min(560px, 92vw);
    height: auto;
    max-height: 190px;
    object-fit: contain;
    filter: drop-shadow(0 18px 45px rgba(0, 0, 0, 0.45));
}

.nav-centered {
    justify-content: center;
    padding-top: 14px;
    padding-bottom: 14px;
}

.nav-centered .nav-links {
    justify-content: center;
}

.nav {
    width: min(1180px, calc(100% - 32px));
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 0 25px rgba(214, 168, 71, 0.25);
}

.brand-mark span {
    display: block;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid var(--gold);
    margin-left: 4px;
}

.nav-links {
    display: flex;
    gap: 16px;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 14px;
    flex-wrap: wrap;
}

.nav-links a:hover {
    color: var(--gold);
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: auto;
    padding: 34px 0 60px;
}

.footer {
    width: min(1180px, calc(100% - 32px));
    margin: auto;
    border-top: 1px solid var(--border);
    padding: 24px 0;
    color: var(--muted);
    font-family: Arial, sans-serif;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
}

.card, .player-card, .info-card, .filter-card, .video-card, .admin-card, .form-card, .table-card {
    background: linear-gradient(145deg, rgba(34, 34, 42, 0.96), rgba(20, 20, 25, 0.96));
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
}

.video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050505;
    display: block;
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fallback {
    height: 100%;
    display: grid;
    place-items: center;
    padding: 28px;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.8)), var(--fallback-image, url('placeholder.svg')) center / cover;
}

.fallback-box {
    max-width: 560px;
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 22px;
}

.watch-details, .card-body, .admin-card, .form-card, .table-card {
    padding: 24px;
}

.eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-family: Arial, sans-serif;
    font-weight: 700;
    margin: 0 0 10px;
}

h1, h2, h3 {
    margin: 0;
    line-height: 1.05;
}

h1 {
    font-size: clamp(34px, 5vw, 64px);
}

h2 {
    font-size: clamp(26px, 3vw, 36px);
}

h3 {
    font-size: 20px;
}

p {
    color: var(--muted);
    line-height: 1.65;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
    font-family: Arial, sans-serif;
}

.pill {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 11px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.pill.gold {
    color: #17120a;
    background: var(--gold);
    border-color: var(--gold);
    font-weight: 700;
}

.pill.posted-time {
    position: relative;
    color: #d8d2c6;
    background: rgba(214, 168, 71, 0.08);
    border-color: rgba(214, 168, 71, 0.22);
    font-family: Arial, sans-serif;
    font-weight: 800;
}

.pill.posted-time::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(214, 168, 71, 0.12);
}

.video-card-meta {
    align-items: center;
}

.video-card .posted-time {
    font-size: 12px;
    padding: 6px 9px;
    color: rgba(243, 240, 232, 0.86);
}

.watch-details .posted-time {
    border-color: rgba(214, 168, 71, 0.32);
}

.pill.subtitle-ready {
    color: #f3f0e8;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(214, 168, 71, 0.28);
    font-family: Arial, sans-serif;
    font-weight: 800;
}

.pill.subtitle-ready::before {
    content: 'CC';
    color: #17120a;
    background: var(--gold);
    border-radius: 5px;
    padding: 2px 4px;
    font-size: 10px;
    line-height: 1;
}

.info-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.classic-poster {
    min-height: 250px;
    border-radius: 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.65)), var(--poster-image, url('placeholder.svg')) center / cover;
    border: 1px solid var(--border);
    margin-top: 22px;
}

.cta-row, .actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.btn, button {
    border: 0;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-weight: 800;
    border-radius: 999px;
    padding: 13px 18px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover, button:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gold);
    color: #17120a;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-danger {
    background: var(--red);
    color: #fff;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin: 38px 0 18px;
}

.filter-card {
    padding: 18px;
    margin-bottom: 22px;
}

.filters {
    display: grid;
    grid-template-columns: 1fr 220px auto;
    gap: 12px;
}

input, select, textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text);
    border-radius: 14px;
    padding: 14px 16px;
    outline: none;
    font-size: 15px;
    font-family: Arial, sans-serif;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(214, 168, 71, 0.72);
    box-shadow: 0 0 0 4px rgba(214, 168, 71, 0.12);
    background: rgba(10, 10, 14, 0.88);
}

textarea {
    min-height: 130px;
    resize: vertical;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color-scheme: dark;
    cursor: pointer;
    padding-right: 48px;
    border-color: rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(145deg, rgba(22, 22, 29, 0.98), rgba(10, 10, 15, 0.98)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23d6a847' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, calc(100% - 16px) center;
    background-size: auto, 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 10px 28px rgba(0, 0, 0, 0.22);
}

select:hover {
    border-color: rgba(214, 168, 71, 0.42);
    background:
        linear-gradient(145deg, rgba(26, 26, 35, 0.98), rgba(12, 12, 18, 0.98)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23d6a847' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, calc(100% - 16px) center;
    background-size: auto, 14px;
}

select::-ms-expand {
    display: none;
}

select option,
select optgroup {
    background: #111319;
    color: #f3f0e8;
}

input[type="file"] {
    border-style: dashed;
    background: rgba(255, 255, 255, 0.035);
}

input[type="file"]::file-selector-button {
    margin-right: 12px;
    border: 0;
    border-radius: 999px;
    background: var(--gold);
    color: #17120a;
    padding: 9px 14px;
    font-family: Arial, sans-serif;
    font-weight: 800;
    cursor: pointer;
}

label {
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 13px;
    display: block;
    margin-bottom: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

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

.video-card {
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(214, 168, 71, 0.55);
}

.thumb {
    position: relative;
    height: 190px;
    background-size: cover;
    background-position: center;
}

.thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 35%, rgba(0, 0, 0, 0.78));
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    bottom: auto;
    z-index: 1;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gold);
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.42);
}

.play-badge span {
    display: block;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #17120a;
    margin-left: 4px;
}

.empty {
    grid-column: 1 / -1;
    padding: 28px;
    border: 1px dashed var(--border);
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
    font-family: Arial, sans-serif;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-family: Arial, sans-serif;
    border: 1px solid var(--border);
}

.alert.success {
    background: rgba(63, 143, 87, 0.18);
    color: #bff0cc;
}

.alert.error {
    background: rgba(179, 58, 58, 0.18);
    color: #ffd1d1;
}

.admin-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.stat-number {
    font-size: 42px;
    color: var(--gold);
    font-weight: 800;
    margin: 8px 0 0;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

th, td {
    text-align: left;
    border-bottom: 1px solid var(--border);
    padding: 14px 10px;
    vertical-align: middle;
}

th {
    color: var(--gold);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

td {
    color: var(--muted);
}

.table-thumb {
    width: 82px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.login-box {
    max-width: 460px;
    margin: 50px auto;
}

.help-text {
    font-size: 13px;
    color: var(--muted);
    font-family: Arial, sans-serif;
    margin-top: 8px;
}


.video-description {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.7;
    white-space: normal;
}

.hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hashtags.compact {
    margin-top: 12px;
    gap: 6px;
}

.hashtag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(214, 168, 71, 0.26);
    background: rgba(214, 168, 71, 0.10);
    color: var(--gold);
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.hashtag-pill:hover {
    background: rgba(214, 168, 71, 0.17);
    border-color: rgba(214, 168, 71, 0.55);
    transform: translateY(-1px);
}

.video-card .hashtag-pill {
    pointer-events: none;
    font-size: 12px;
    min-height: 26px;
    padding: 5px 8px;
}

.admin-hashtags {
    margin-top: 6px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
}

.admin-posted-time {
    margin-top: 6px;
    color: rgba(243, 240, 232, 0.62);
    font-size: 12px;
    font-weight: 700;
}

.admin-subtitle-status {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(243, 240, 232, 0.76);
    font-size: 12px;
    font-weight: 800;
}

.admin-subtitle-status::before {
    content: 'CC';
    color: #17120a;
    background: var(--gold);
    border-radius: 5px;
    padding: 2px 4px;
    font-size: 10px;
}

.subtitle-help-box {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(214, 168, 71, 0.18);
    background: rgba(214, 168, 71, 0.07);
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.55;
}

.active-filter {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border: 1px solid rgba(214, 168, 71, 0.22);
    border-radius: 16px;
    background: rgba(214, 168, 71, 0.08);
    color: var(--text);
    font-family: Arial, sans-serif;
}

.active-filter strong,
.active-filter a {
    color: var(--gold);
}

@media (max-width: 920px) {
    .hero, .stats-grid {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters, .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .nav, .section-head {
        align-items: center;
        flex-direction: column;
    }

    .site-logo-bar {
        padding: 16px 0 14px;
    }

    .site-logo {
        width: min(420px, 94vw);
        max-height: 150px;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

/* Professional YouTube-style custom video player */
.cw-player {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    font-family: Arial, sans-serif;
    user-select: none;
}

.cw-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}

.cw-player::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    pointer-events: none;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
    opacity: 0;
    transition: opacity 0.18s ease;
    z-index: 1;
}

.cw-player.is-controls-visible::after,
.cw-player.is-paused::after {
    opacity: 1;
}

.cw-player button {
    appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transform: none;
    transition: opacity 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.cw-player button:hover {
    transform: none;
}

.cw-subtitle-display {
    position: absolute;
    left: 50%;
    bottom: 38px;
    transform: translateX(-50%);
    z-index: 3;
    width: min(92%, 980px);
    padding: 0 12px;
    text-align: center;
    pointer-events: none;
    font-family: Arial, sans-serif;
    font-size: clamp(15px, 2.5vw, 24px);
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: 0.01em;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.cw-subtitle-display[hidden] {
    display: none;
}

.cw-subtitle-display span {
    display: inline;
    padding: 4px 10px 5px;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.72);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.cw-player.is-controls-visible .cw-subtitle-display,
.cw-player.is-paused .cw-subtitle-display {
    bottom: 86px;
}

.cw-cc-btn.is-active {
    color: #17120a !important;
    background: var(--gold) !important;
}

.cw-cc-btn.is-active:hover {
    background: #efc15a !important;
}

.cw-overlay-play {
    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 78px;
    height: 78px;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.62) !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    z-index: 5;
    backdrop-filter: blur(12px);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: translate(-50%, -50%);
}

.cw-overlay-play span {
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 25px solid #fff;
    margin-left: 6px;
}

.cw-player.is-playing .cw-overlay-play {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.92);
}

.cw-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    padding: 0 14px 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.cw-player.is-controls-visible .cw-controls,
.cw-player.is-paused .cw-controls,
.cw-player:focus-within .cw-controls {
    opacity: 1;
    transform: translateY(0);
}

.cw-progress {
    display: block;
    width: 100%;
    height: 5px;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    accent-color: var(--gold);
    cursor: pointer;
}

.cw-progress::-webkit-slider-runnable-track,
.cw-volume::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

.cw-progress::-webkit-slider-thumb,
.cw-volume::-webkit-slider-thumb {
    appearance: none;
    width: 13px;
    height: 13px;
    margin-top: -4.5px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(214, 168, 71, 0.16);
}

.cw-progress::-moz-range-track,
.cw-volume::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

.cw-progress::-moz-range-thumb,
.cw-volume::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border: 0;
    border-radius: 50%;
    background: var(--gold);
}

.cw-control-bar {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cw-control-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.cw-right-group {
    margin-left: auto;
}

.cw-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50% !important;
    color: #fff !important;
    background: transparent !important;
    font-size: 17px !important;
    line-height: 1;
}

.cw-icon-btn:hover {
    background: rgba(255, 255, 255, 0.14) !important;
}

.cw-cc-btn {
    width: 42px;
    border-radius: 10px !important;
    font-size: 12px !important;
    letter-spacing: 0.5px;
}

.cw-cc-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.cw-cc-btn.is-active span {
    color: #17120a;
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(214, 168, 71, 0.12);
}

.cw-player video::cue {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.72);
    font-family: Arial, sans-serif;
    font-size: 105%;
    line-height: 1.35;
}

.cw-volume {
    width: 88px;
    height: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    accent-color: var(--gold);
    cursor: pointer;
}

.cw-time {
    color: rgba(255, 255, 255, 0.94);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.cw-time-sep {
    color: rgba(255, 255, 255, 0.58);
    padding: 0 4px;
}

.cw-settings-panel {
    position: absolute;
    right: 14px;
    bottom: 62px;
    z-index: 8;
    width: 270px;
    max-width: calc(100% - 28px);
    border-radius: 14px;
    padding: 8px;
    background: rgba(20, 20, 24, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(18px);
}

.cw-settings-panel[hidden] {
    display: none;
}

.cw-settings-view[hidden] {
    display: none;
}

.cw-menu-row {
    width: 100%;
    min-height: 42px;
    padding: 0 12px !important;
    border-radius: 10px !important;
    justify-content: space-between !important;
    gap: 14px;
    color: rgba(255, 255, 255, 0.94) !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: left;
}

.cw-menu-row:hover {
    background: rgba(255, 255, 255, 0.09) !important;
}

.cw-menu-row strong {
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    font-weight: 700;
}

.cw-menu-row b {
    opacity: 0;
    color: var(--gold);
    font-size: 13px;
}

.cw-menu-row.is-active b {
    opacity: 1;
}

.cw-menu-back {
    justify-content: flex-start !important;
    color: var(--gold) !important;
    margin-bottom: 4px !important;
}

@media (max-width: 720px) {

    .cw-subtitle-display {
        width: 96%;
        font-size: clamp(14px, 4vw, 18px);
        bottom: 30px;
        padding: 0 8px;
    }

    .cw-player.is-controls-visible .cw-subtitle-display,
    .cw-player.is-paused .cw-subtitle-display {
        bottom: 78px;
    }

    .cw-subtitle-display span {
        padding: 3px 8px 4px;
        border-radius: 6px;
    }

    .cw-controls {
        padding: 0 10px 10px;
    }

    .cw-control-bar {
        gap: 8px;
    }

    .cw-control-group {
        gap: 4px;
    }

    .cw-icon-btn {
        width: 34px;
        height: 34px;
        font-size: 15px !important;
    }

    .cw-volume {
        display: none;
    }

    .cw-time {
        font-size: 12px;
    }

    .cw-settings-panel {
        right: 10px;
        bottom: 56px;
        width: 245px;
    }

    .cw-overlay-play {
        width: 66px;
        height: 66px;
    }

    .cw-overlay-play span {
        border-top-width: 13px;
        border-bottom-width: 13px;
        border-left-width: 21px;
    }
}

/* Pagination */
.pagination-shell {
    margin: 34px auto 4px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(214, 168, 71, 0.12), transparent 38%),
        linear-gradient(145deg, rgba(24, 24, 31, 0.96), rgba(10, 10, 14, 0.96));
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-family: Arial, sans-serif;
}

.pagination-summary {
    min-width: 190px;
    padding: 4px 0 4px 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pagination-kicker {
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.6px;
}

.pagination-summary strong {
    color: var(--text);
    font-size: 15px;
}

.pagination-summary small {
    color: var(--muted);
    font-size: 12px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
}

.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    padding: 0 13px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.pagination a:hover {
    border-color: rgba(214, 168, 71, 0.55);
    background: rgba(214, 168, 71, 0.10);
    color: var(--gold);
    transform: translateY(-2px);
}

.pagination-number.is-active {
    background: linear-gradient(145deg, #e1b453, #bc852d);
    border-color: rgba(255, 227, 166, 0.62);
    color: #17120a;
    box-shadow: 0 10px 25px rgba(214, 168, 71, 0.28);
    pointer-events: none;
}

.pagination-btn {
    gap: 9px;
    min-width: 112px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.pagination-btn span {
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--gold) !important;
    font-size: 22px !important;
    box-shadow: none !important;
}

.pagination-btn b {
    font-size: 13px;
    letter-spacing: 0.2px;
}

.pagination-btn.is-disabled {
    opacity: 0.36;
    pointer-events: none;
}

.pagination-dots {
    min-width: 24px !important;
    padding: 0 2px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--muted) !important;
}

@media (max-width: 760px) {
    .pagination-shell {
        align-items: stretch;
        flex-direction: column;
    }

    .pagination {
        justify-content: center;
    }

    .pagination-summary {
        align-items: center;
        text-align: center;
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .pagination-numbers {
        order: -1;
        width: 100%;
        border-radius: 18px;
    }

    .pagination-btn {
        flex: 1;
        min-width: 0 !important;
    }
}

/* Header/menu removed: logo is now the first visual section. */
.site-logo-section.no-header {
    border-top: 0;
}

.site-logo-section.no-header .site-logo-bar {
    padding-top: 30px;
}

/* Mobile player stability update */
.cw-player {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    isolation: isolate;
}

.cw-player video {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.cw-player.is-buffering::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 6;
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.28);
    border-top-color: var(--gold);
    animation: cwSpin 0.85s linear infinite;
    pointer-events: none;
}

@keyframes cwSpin {
    to { transform: rotate(360deg); }
}

.cw-no-scroll {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.cw-player.is-web-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 999999 !important;
    border-radius: 0 !important;
    background: #000 !important;
}

.cw-player.is-web-fullscreen video {
    width: 100vw !important;
    height: 100dvh !important;
    object-fit: contain !important;
}

.cw-player.is-web-fullscreen .cw-subtitle-display {
    bottom: 56px;
    font-size: clamp(17px, 4vw, 28px);
}

.cw-player.is-web-fullscreen.is-controls-visible .cw-subtitle-display,
.cw-player.is-web-fullscreen.is-paused .cw-subtitle-display {
    bottom: 94px;
}

@media (max-width: 720px) {
    .cw-player {
        min-height: 210px;
    }

    .cw-control-bar {
        min-height: 46px;
    }

    .cw-icon-btn,
    .cw-cc-btn {
        min-width: 38px;
        min-height: 38px;
    }

    .cw-settings-panel {
        max-height: min(58vh, 360px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cw-subtitle-display {
        z-index: 7;
        line-height: 1.26;
    }

    .cw-subtitle-display span {
        background: rgba(0, 0, 0, 0.78);
    }
}

/* Overlay play button true-center fix */
.cw-player {
    --cw-overlay-center-offset: 34px;
}

.cw-overlay-play {
    top: calc(50% - var(--cw-overlay-center-offset)) !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
}

.cw-player.is-playing .cw-overlay-play {
    transform: translate(-50%, -50%) scale(0.92) !important;
}

@media (max-width: 720px) {
    .cw-player {
        --cw-overlay-center-offset: 42px;
    }
}

/* YouTube-style forward/backward seek indicator */
.cw-skip-feedback {
    position: absolute;
    top: calc(50% - 34px);
    left: 22%;
    z-index: 8;
    min-width: 74px;
    min-height: 74px;
    padding: 0 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: rgba(0, 0, 0, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.78);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.cw-skip-feedback.is-forward {
    left: auto;
    right: 22%;
    transform: translate(50%, -50%) scale(0.78);
}

.cw-skip-feedback.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cw-skip-feedback.is-forward.is-visible {
    transform: translate(50%, -50%) scale(1);
}

.cw-skip-feedback::before,
.cw-skip-feedback::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
}

.cw-skip-feedback.is-visible::before {
    animation: cwSeekPulse 0.72s ease-out;
}

@keyframes cwSeekPulse {
    0% { opacity: 0.82; transform: scale(0.82); }
    100% { opacity: 0; transform: scale(1.28); }
}

@media (max-width: 720px) {
    .cw-skip-feedback {
        top: calc(50% - 42px);
        left: 20%;
        min-width: 62px;
        min-height: 62px;
        font-size: 15px;
    }

    .cw-skip-feedback.is-forward {
        right: 20%;
    }
}


/* Professional views system */
.views-pill {
    border-color: rgba(214, 168, 71, 0.28);
    background: rgba(214, 168, 71, 0.09);
    color: rgba(243, 240, 232, 0.92);
    font-weight: 800;
}

.views-pill::before {
    content: '👁';
    margin-right: 6px;
    font-size: 12px;
    opacity: 0.8;
}

.admin-views-count {
    color: var(--gold);
    white-space: nowrap;
}

@media (max-width: 620px) {
    .views-pill::before {
        margin-right: 5px;
    }
}

/* YouTube-style Like / Dislike / Share system */
.video-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0 2px;
    font-family: Arial, sans-serif;
}

.reaction-group {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 28px rgba(0, 0, 0, 0.22);
}

.reaction-btn,
.share-action-btn {
    min-height: 42px;
    border: 0;
    color: rgba(243, 240, 232, 0.94);
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 900;
    font-size: 14px;
    font-family: Arial, sans-serif;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.reaction-btn {
    padding: 0 16px;
}

.reaction-btn:hover,
.share-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: none;
}

.reaction-btn.is-active {
    color: #17120a;
    background: var(--gold);
}

.reaction-btn.is-loading,
.share-action-btn.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.reaction-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.12);
}

.reaction-icon {
    font-size: 15px;
    line-height: 1;
}

.share-action-btn {
    border-radius: 999px;
    padding: 0 17px;
    border: 1px solid rgba(214, 168, 71, 0.24);
    background: rgba(214, 168, 71, 0.10);
    color: var(--gold);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.share-action-btn span {
    font-size: 16px;
}

.share-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 12px);
    z-index: 30;
    width: min(440px, calc(100vw - 32px));
}

.share-panel[hidden] {
    display: none;
}

.share-panel-card {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at top left, rgba(214, 168, 71, 0.12), transparent 42%),
        linear-gradient(145deg, rgba(25, 25, 32, 0.98), rgba(11, 11, 15, 0.98));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(18px);
}

.share-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    color: var(--text);
    font-size: 17px;
}

.share-panel-head button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.07);
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.share-panel-card p {
    margin: 10px 0 14px;
    font-size: 14px;
}

.share-copy-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.share-copy-row input {
    height: 44px;
    font-size: 13px;
}

.share-copy-row button,
.share-native-btn {
    min-height: 44px;
    border-radius: 999px;
    border: 0;
    padding: 0 16px;
    font-weight: 900;
    background: var(--gold);
    color: #17120a;
    cursor: pointer;
}

.share-native-btn {
    display: none;
    margin-top: 10px;
    width: 100%;
}

.share-native-btn.is-supported {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.video-actions-error {
    width: 100%;
    color: #ffd1d1;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 620px) {
    .video-actions {
        gap: 10px;
    }

    .reaction-group,
    .share-action-btn {
        flex: 1 1 auto;
    }

    .reaction-btn {
        flex: 1;
        padding: 0 12px;
    }

    .share-action-btn {
        min-width: 118px;
    }

    .share-panel {
        left: 50%;
        transform: translateX(-50%);
    }
}


/* Discord invite */
.discord-invite-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 22px;
    display: flex;
    justify-content: center;
}

.discord-invite-card {
    width: min(560px, 100%);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 22px;
    border: 1px solid rgba(214, 168, 71, 0.24);
    background:
        radial-gradient(circle at top left, rgba(214, 168, 71, 0.14), transparent 40%),
        linear-gradient(145deg, rgba(30, 30, 38, 0.94), rgba(12, 12, 17, 0.94));
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
    color: var(--text);
    font-family: Arial, sans-serif;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.discord-invite-card:hover {
    transform: translateY(-2px);
    border-color: rgba(214, 168, 71, 0.55);
    box-shadow: 0 22px 62px rgba(0, 0, 0, 0.42);
}

.discord-invite-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--gold);
    color: #17120a;
    font-size: 19px;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(214, 168, 71, 0.20);
}

.discord-invite-text {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.discord-invite-text strong {
    font-size: 15px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.discord-invite-text small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.discord-invite-arrow {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--gold);
    font-weight: 900;
}

.footer-discord-link {
    color: var(--gold);
    font-weight: 800;
    font-family: Arial, sans-serif;
}

.footer-discord-link:hover {
    text-decoration: underline;
}

@media (max-width: 620px) {
    .discord-invite-section {
        margin-bottom: 18px;
    }

    .discord-invite-card {
        border-radius: 18px;
        padding: 12px 13px;
    }

    .discord-invite-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 14px;
    }

    .discord-invite-text strong {
        font-size: 13px;
    }

    .discord-invite-text small {
        font-size: 12px;
    }
}
