* { box-sizing: border-box; }

:root {
    --bg: #070a12;
    --surface: #0f1422;
    --surface-2: #151b2d;
    --surface-soft: #101827;
    --text: #f8fafc;
    --muted: #9aa7bd;
    --line: rgba(148, 163, 184, 0.18);
    --line-strong: rgba(148, 163, 184, 0.28);
    --brand: #38bdf8;
    --brand-2: #2563eb;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --radius: 18px;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
    --container: 1160px;
}

html {
    min-height: 100%;
    background: var(--bg);
    color-scheme: dark;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    color: var(--text);
    background: var(--bg);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.08), transparent 280px);
}

body > * { position: relative; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

button,
input,
textarea,
select {
    font: inherit;
}

button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.channel-card:focus-visible {
    outline: 3px solid rgba(56, 189, 248, 0.75);
    outline-offset: 3px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px max(16px, calc((100vw - var(--container)) / 2));
    background: rgba(7, 10, 18, 0.96);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.search-input,
.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    min-height: 44px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
    outline: none;
}

.search-input {
    width: min(42vw, 340px);
    border-radius: 999px;
}

.search-input::placeholder,
.admin-form input::placeholder,
.admin-form textarea::placeholder {
    color: rgba(154, 167, 189, 0.72);
}

.search-input:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    border-color: rgba(56, 189, 248, 0.68);
}

.install-btn,
.admin-link,
.primary-link,
.primary-btn,
.secondary-btn,
.small-btn,
.modal-btn,
.category-pill,
.support-qr-button,
.qris-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: var(--surface-2);
    padding: 9px 14px;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.install-btn,
.primary-btn,
.primary-link,
.category-pill.active {
    border-color: rgba(56, 189, 248, 0.7);
    background: linear-gradient(135deg, var(--brand-2), #0ea5e9);
}

.danger,
.small-btn.danger,
.admin-link.danger {
    border-color: rgba(239, 68, 68, 0.45);
    color: #fecaca;
}

button:disabled,
.small-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (hover: hover) {
    .install-btn:hover,
    .admin-link:hover,
    .primary-link:hover,
    .primary-btn:hover,
    .secondary-btn:hover,
    .small-btn:hover,
    .modal-btn:hover,
    .category-pill:hover,
    .support-qr-button:hover {
        transform: translateY(-1px);
        border-color: rgba(56, 189, 248, 0.62);
    }
}

.main-content,
.admin-page {
    width: min(var(--container), calc(100% - 28px));
    margin: 22px auto 38px;
}

.hero-panel {
    margin-bottom: 16px;
    padding: clamp(20px, 4vw, 34px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.hero-copy {
    max-width: 760px;
}

.hero-eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.22);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-panel h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(1.55rem, 5vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-panel p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: clamp(0.95rem, 2vw, 1.08rem);
}

.category-bar {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    padding-bottom: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-bar::-webkit-scrollbar { display: none; }

.category-pill {
    flex: 0 0 auto;
    min-height: 40px;
    white-space: nowrap;
    scroll-snap-align: start;
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.channel-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 156px;
    padding: 12px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

@media (hover: hover) {
    .channel-card:hover {
        transform: translateY(-2px);
        background: var(--surface-2);
        border-color: rgba(56, 189, 248, 0.46);
    }
}

.channel-card:active { transform: scale(0.99); }

.channel-logo-wrap {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 13px;
    background: var(--surface-soft);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 15px;
}

.channel-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.channel-card h2 {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.28;
    text-align: center;
}

.no-result,
.muted,
.small-note,
.empty-state p,
.support-simple-description,
.qris-modal-description,
.app-version-text {
    color: var(--muted);
}

.no-result {
    margin: 28px 0;
    text-align: center;
}

.empty-state {
    min-height: 44vh;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    text-align: center;
}

.empty-state img {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.empty-state h1 { margin: 8px 0 0; }
.empty-state p { margin: 0; }

.support-section {
    margin-top: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: clamp(18px, 4vw, 30px);
}

.support-simple-inner {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.support-section h2,
.qris-modal-panel h2,
.admin-card h1,
.admin-card h2 {
    margin: 0 0 10px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.support-simple-description { margin: 0 auto 18px; }

.support-simple-qr-wrap {
    display: grid;
    place-items: center;
}

.support-qr-button {
    flex-direction: column;
    border-radius: 20px;
    padding: 12px;
    background: var(--surface-soft);
}

.support-simple-qr,
.qris-modal-image {
    display: block;
    width: min(260px, 78vw);
    height: auto;
    border-radius: 14px;
    background: #fff;
}

.support-simple-placeholder {
    width: min(260px, 78vw);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    border: 1px dashed var(--line-strong);
    border-radius: 18px;
    color: var(--muted);
}

.support-simple-name { margin: 14px 0 0; }

.modal,
.qris-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    padding: 14px;
}

.modal.active,
.qris-modal.is-open {
    display: grid;
    place-items: center;
}

.modal-backdrop,
.qris-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.modal-panel,
.qris-modal-panel {
    position: relative;
    width: min(1060px, 100%);
    max-height: min(860px, calc(100vh - 28px));
    overflow: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.modal-channel-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: contain;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.modal-label {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
}

.modal-title-wrap h2 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-box {
    background: #000;
}

.player-mount {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 220px;
    display: grid;
    place-items: center;
    background: #000;
}

.player-mount iframe,
.player-mount video {
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.player-error {
    color: #fecaca;
    padding: 18px;
    text-align: center;
}

.qris-modal-panel {
    width: min(430px, 100%);
    padding: 20px;
    text-align: center;
}

.qris-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1.4rem;
}

.qris-modal-image {
    margin: 14px auto;
}

.site-footer {
    width: min(var(--container), calc(100% - 28px));
    margin: 0 auto;
    padding: 24px 0 34px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    text-align: center;
}

.made-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.made-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.made-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
}

.page-skeleton { display: none; }

.js-enabled body:not(.is-ready) .page-skeleton {
    display: block;
    width: min(var(--container), calc(100% - 28px));
    margin: 22px auto;
}

.js-enabled body:not(.is-ready) .main-content,
.js-enabled body:not(.is-ready) .site-footer {
    opacity: 0.001;
}

.skeleton-hero,
.skeleton-card,
.skeleton-pills span {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
}

.skeleton-hero {
    height: 150px;
    margin-bottom: 16px;
}

.skeleton-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.skeleton-pills span {
    width: 92px;
    height: 38px;
    flex: 0 0 auto;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.skeleton-card {
    height: 156px;
}

.sk-line,
.sk-orb,
.sk-logo,
.sk-name {
    display: none;
}

.admin-page {
    max-width: 1180px;
}

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

.admin-card,
.alert {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
}

.wide-card { grid-column: 1 / -1; }
.login-card { max-width: 460px; margin: 42px auto; }
.refresh-admin-card { background: var(--surface-2); }

.alert {
    margin-bottom: 14px;
}

.alert-error {
    border-color: rgba(239, 68, 68, 0.45);
    color: #fecaca;
}

.alert-success {
    border-color: rgba(34, 197, 94, 0.42);
    color: #bbf7d0;
}

.admin-form {
    display: grid;
    gap: 14px;
}

.admin-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-form label > input,
.admin-form label > textarea,
.admin-form label > select {
    color: var(--text);
    font-size: 1rem;
}

.admin-form textarea {
    resize: vertical;
    min-height: 120px;
}

.check-label {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px !important;
    color: var(--text) !important;
}

.check-label input {
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
}

.form-actions,
.refresh-actions,
.table-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.version-box {
    display: grid;
    gap: 4px;
    margin: 12px 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
}

.version-box span,
.version-box small {
    color: var(--muted);
}

.current-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
}

.current-logo img,
.table-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.current-qris-preview img {
    width: 120px;
    height: auto;
    background: #fff;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

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

.admin-table th {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.8rem;
    border: 1px solid var(--line);
}

.badge.active {
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.38);
}

.badge.inactive {
    color: #fed7aa;
    border-color: rgba(245, 158, 11, 0.38);
}

body.qris-modal-open { overflow: hidden; }

@media (max-width: 980px) {
    .channel-grid,
    .skeleton-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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

    .brand { justify-content: center; }

    .header-actions {
        width: 100%;
    }

    .search-input {
        width: 100%;
        flex: 1 1 auto;
    }

    .main-content,
    .admin-page {
        width: min(100% - 20px, var(--container));
        margin-top: 12px;
    }

    .hero-panel {
        border-radius: 20px;
    }

    .channel-grid,
    .skeleton-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
    }

    .channel-card {
        min-height: 132px;
        padding: 9px;
        border-radius: 15px;
    }

    .channel-logo-wrap {
        padding: 10px;
        border-radius: 12px;
    }

    .channel-card h2 {
        font-size: 0.86rem;
    }

    .modal {
        padding: 0;
        align-items: end;
    }

    .modal-panel {
        width: 100%;
        max-height: 94vh;
        border-radius: 18px 18px 0 0;
    }

    .modal-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .modal-actions {
        width: 100%;
    }

    .modal-btn {
        flex: 1;
    }

    .player-mount {
        min-height: 210px;
        aspect-ratio: 16 / 9;
    }

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

@media (max-width: 430px) {
    .channel-grid,
    .skeleton-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .install-btn,
    .admin-link,
    .primary-link,
    .primary-btn,
    .secondary-btn,
    .small-btn,
    .modal-btn,
    .category-pill {
        min-height: 40px;
        padding: 8px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* Step 5: mobile PWA, kategori, orientasi, dan install */
.header-actions-compact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.header-actions-compact .admin-link,
.header-actions-compact .install-btn {
    min-width: 86px;
    white-space: nowrap;
}

.channel-toolbar {
    margin: 14px 0 10px;
}

.channel-search-input {
    width: 100%;
    min-height: 48px;
    border-radius: 18px;
    font-size: 1rem;
}

.category-pill[aria-pressed="true"] {
    border-color: rgba(56, 189, 248, 0.7);
    background: linear-gradient(135deg, var(--brand-2), #0ea5e9);
}

.channel-card[hidden] {
    display: none !important;
}

.install-btn:not([hidden]) {
    display: inline-flex;
}

body.player-fullscreen-mode .site-header,
body.player-fullscreen-mode .main-content,
body.player-fullscreen-mode .site-footer {
    max-width: none;
}

.player-box:fullscreen,
.player-box:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    background: #000;
}

.player-box:fullscreen .player-mount,
.player-box:-webkit-full-screen .player-mount {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
}

@media (orientation: landscape) and (max-height: 560px) {
    body:not(.player-fullscreen-mode) .site-header,
    body:not(.player-fullscreen-mode) .main-content,
    body:not(.player-fullscreen-mode) .site-footer {
        width: min(430px, calc(100vw - 20px));
        max-width: 430px;
        margin-left: auto;
        margin-right: auto;
    }

    body:not(.player-fullscreen-mode) .site-header {
        position: sticky;
        top: 0;
        border-radius: 0 0 18px 18px;
    }

    body:not(.player-fullscreen-mode) .hero-panel {
        padding: 16px;
    }

    body:not(.player-fullscreen-mode) .hero-panel h1 {
        font-size: 1.45rem;
    }

    body:not(.player-fullscreen-mode) .hero-panel p {
        font-size: 0.92rem;
    }

    body:not(.player-fullscreen-mode) .channel-grid,
    body:not(.player-fullscreen-mode) .skeleton-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body:not(.player-fullscreen-mode) .modal-panel {
        width: min(430px, 100%);
    }
}

@media (max-width: 760px) {
    .site-header {
        align-items: center;
        flex-direction: row;
    }

    .brand span {
        max-width: 38vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-actions-compact {
        width: auto;
    }

    .header-actions-compact .admin-link,
    .header-actions-compact .install-btn {
        min-width: auto;
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 370px) {
    .brand span {
        display: none;
    }
}

/* Step 6: footer install/admin dan bendera negara */
.site-header .header-actions-compact,
.site-header .header-actions:empty {
    display: none;
}

.footer-action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.footer-action-row .admin-link,
.footer-action-row .install-btn {
    min-width: 96px;
}

.channel-name-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.channel-name-line span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-country-flag,
.country-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 1;
}

.country-chip {
    gap: 6px;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    white-space: nowrap;
}

.admin-form #countryCodeSelect {
    cursor: pointer;
}

@media (max-width: 760px) {
    .site-header {
        justify-content: center;
    }
}


/* Step 6B: admin country fix */
.country-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    white-space: nowrap;
}

.admin-form #countryCodeSelect {
    cursor: pointer;
}

/* Step 6C: tampilkan negara sebagai bendera saja */
.country-chip.flag-only {
    width: 34px;
    min-width: 34px;
    height: 30px;
    padding: 0;
    gap: 0;
    font-size: 1.12rem;
}

.channel-country-flag {
    font-size: 1rem;
    transform: translateY(-1px);
}

.channel-name-line {
    gap: 7px;
}

/* Step 7: admin mobile, support actions, portrait behavior */
.admin-mobile-toolbar {
    display: grid;
    gap: 10px;
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
}

.admin-mobile-toolbar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text);
}

.admin-mobile-toolbar-title span {
    color: var(--muted);
    font-size: 0.88rem;
}

.admin-mobile-search {
    width: 100%;
    min-height: 46px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
    outline: none;
}

.admin-mobile-search:focus {
    border-color: rgba(56, 189, 248, 0.68);
}

.admin-mobile-hint {
    color: var(--muted);
    font-size: 0.86rem;
}

.admin-quick-jump {
    display: flex;
    gap: 8px;
    margin: 0 0 14px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.admin-quick-jump::-webkit-scrollbar {
    display: none;
}

.admin-quick-jump a {
    flex: 0 0 auto;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    padding: 8px 12px;
    font-size: 0.9rem;
}

.touch-actions {
    gap: 8px;
}

.touch-target {
    min-height: 42px;
}

.support-action-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px auto 0;
}

.support-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text);
    font-weight: 700;
}

.support-action-button img {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.support-wa {
    border-color: rgba(37, 211, 102, 0.42);
}

.support-ig {
    border-color: rgba(214, 41, 118, 0.42);
}

@media (hover: hover) {
    .support-action-button:hover,
    .admin-quick-jump a:hover {
        border-color: rgba(56, 189, 248, 0.62);
        transform: translateY(-1px);
    }
}

@media (max-width: 760px) {
    .admin-page {
        width: min(100% - 18px, 680px);
    }

    .admin-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-card,
    .alert {
        border-radius: 18px;
        padding: 15px;
    }

    .admin-card h1,
    .admin-card h2 {
        font-size: 1.18rem;
    }

    .admin-form {
        gap: 12px;
    }

    .admin-form label {
        font-size: 0.9rem;
    }

    .admin-form input,
    .admin-form textarea,
    .admin-form select {
        min-height: 46px;
        font-size: 1rem;
    }

    .form-actions,
    .refresh-actions,
    .table-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .form-actions > *,
    .refresh-actions > *,
    .table-actions > * {
        width: 100%;
        justify-content: center;
    }

    .admin-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 10px;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tr {
        border: 1px solid var(--line);
        border-radius: 18px;
        background: var(--surface-soft);
        padding: 10px;
    }

    .admin-table td {
        display: grid;
        grid-template-columns: minmax(88px, 34%) 1fr;
        align-items: center;
        gap: 10px;
        border: 0;
        padding: 8px 4px;
    }

    .admin-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.78rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .admin-table td:first-child {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .admin-table td:first-child::before {
        display: none;
    }

    .admin-table .table-actions {
        grid-template-columns: 1fr 1fr;
    }

    .table-logo,
    .current-logo img {
        width: 54px;
        height: 54px;
    }

    .country-chip.flag-only {
        justify-self: start;
    }

    .support-action-button {
        flex: 1 1 150px;
    }
}

@media (orientation: landscape) and (max-height: 560px) {
    body:not(.player-fullscreen-mode)::after {
        content: "Untuk tampilan terbaik, gunakan mode portrait. Player tetap bisa landscape saat fullscreen.";
        position: fixed;
        left: 50%;
        bottom: 10px;
        z-index: 70;
        transform: translateX(-50%);
        width: min(420px, calc(100vw - 20px));
        padding: 8px 10px;
        border: 1px solid var(--line);
        border-radius: 999px;
        color: var(--muted);
        background: rgba(7, 10, 18, 0.92);
        font-size: 0.76rem;
        text-align: center;
        pointer-events: none;
    }

    body:not(.player-fullscreen-mode) .site-header,
    body:not(.player-fullscreen-mode) .main-content,
    body:not(.player-fullscreen-mode) .site-footer {
        width: min(430px, calc(100vw - 20px));
        max-width: 430px;
        margin-left: auto;
        margin-right: auto;
    }
}

.player-box:fullscreen,
.player-box:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    background: #000;
}

.player-box:fullscreen .player-mount,
.player-box:-webkit-full-screen .player-mount {
    width: 100vw !important;
    height: 100vh !important;
    aspect-ratio: auto !important;
}

/* Step 8: susunan aduan channel */
.support-action-links {
    display: none !important;
}

.support-report-box {
    margin: 16px auto 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
}

.support-report-title {
    margin: 0 0 12px;
    color: var(--text);
    font-weight: 800;
    text-align: center;
    line-height: 1.35;
}

.support-report-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.support-report-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text);
    font-weight: 800;
}

.support-report-button img {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.support-report-button.support-wa {
    border-color: rgba(37, 211, 102, 0.48);
}

.support-report-button.support-ig {
    border-color: rgba(214, 41, 118, 0.48);
}

@media (hover: hover) {
    .support-report-button:hover {
        border-color: rgba(56, 189, 248, 0.62);
        transform: translateY(-1px);
    }
}

@media (max-width: 360px) {
    .support-report-buttons {
        grid-template-columns: 1fr;
    }
}

/* Step 9: stabilisasi player dan iframe */
.player-box {
    position: relative;
    overflow: hidden;
}

.player-status-panel {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 62px;
    z-index: 4;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(7, 10, 18, 0.88);
    color: var(--text);
    font-size: 0.88rem;
    line-height: 1.35;
    pointer-events: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.player-status-panel[hidden] {
    display: none !important;
}

.player-status-panel.is-loading {
    border-color: rgba(56, 189, 248, 0.42);
    color: #bae6fd;
}

.player-status-panel.is-ok {
    border-color: rgba(34, 197, 94, 0.42);
    color: #bbf7d0;
}

.player-status-panel.is-warn {
    border-color: rgba(245, 158, 11, 0.48);
    color: #fde68a;
}

.player-status-panel.is-error {
    border-color: rgba(239, 68, 68, 0.52);
    color: #fecaca;
}

.player-status-panel.is-soft {
    color: var(--muted);
}

.player-quick-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--line);
    background: var(--surface-soft);
}

.player-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
}

.player-tool-btn:hover {
    border-color: rgba(56, 189, 248, 0.62);
}

.player-mount iframe,
.player-mount video {
    display: block;
}

.player-error {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 20px;
    color: #fecaca;
    text-align: center;
}

.player-box:fullscreen,
.player-box:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    background: #000;
}

.player-box:fullscreen .player-mount,
.player-box:-webkit-full-screen .player-mount {
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    aspect-ratio: auto !important;
}

.player-box:fullscreen .player-quick-tools,
.player-box:-webkit-full-screen .player-quick-tools {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 6;
    transform: translateX(-50%);
    width: min(520px, calc(100vw - 24px));
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    background: rgba(7, 10, 18, 0.78);
}

.player-box:fullscreen .player-status-panel,
.player-box:-webkit-full-screen .player-status-panel {
    bottom: 72px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(520px, calc(100vw - 24px));
}

@media (max-width: 520px) {
    .player-quick-tools {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .player-tool-btn {
        min-height: 38px;
        padding: 7px 8px;
        font-size: 0.82rem;
    }

    .player-status-panel {
        bottom: 58px;
        font-size: 0.82rem;
    }
}

@media (orientation: landscape) and (max-height: 560px) {
    body.player-fullscreen-mode .player-box,
    body.player-fullscreen-mode .player-mount {
        width: 100vw !important;
        height: 100vh !important;
        max-width: none !important;
    }
}

/* Step 10: halaman urutan channel */
.admin-order-page {
    max-width: 920px;
}

.channel-order-normalize-form {
    margin: 12px 0 16px;
}

.channel-order-list {
    display: grid;
    gap: 10px;
}

.channel-order-item {
    display: grid;
    grid-template-columns: 42px 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
}

.channel-order-rank {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-weight: 900;
}

.channel-order-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.channel-order-info {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.channel-order-info strong,
.channel-order-info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.channel-order-info span {
    color: var(--muted);
    font-size: 0.88rem;
}

.channel-order-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-btn {
    min-width: 42px;
    font-weight: 900;
}

@media (max-width: 640px) {
    .channel-order-item {
        grid-template-columns: 34px 48px minmax(0, 1fr);
    }

    .channel-order-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .channel-order-actions > *,
    .channel-order-actions .small-btn {
        width: 100%;
        justify-content: center;
    }

    .channel-order-rank {
        width: 32px;
        height: 32px;
    }
}

/* Step 10B: shortcut urutan channel */
.admin-order-shortcut {
    border-color: rgba(56, 189, 248, 0.28);
}

.admin-order-shortcut .secondary-btn {
    width: fit-content;
}

@media (max-width: 760px) {
    .admin-order-shortcut .secondary-btn {
        width: 100%;
    }
}

/* Step 11: backup restore */
.backup-page {
    max-width: 920px;
}

.backup-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.backup-action-grid > * {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
}

.server-backup-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.server-backup-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
}

.server-backup-item div:first-child {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.server-backup-item strong,
.server-backup-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-backup-item span {
    color: var(--muted);
    font-size: 0.88rem;
}

.server-backup-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-backup-shortcut {
    border-color: rgba(34, 197, 94, 0.28);
}

@media (max-width: 700px) {
    .backup-action-grid,
    .server-backup-item {
        grid-template-columns: 1fr;
    }

    .server-backup-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .server-backup-actions form,
    .server-backup-actions button,
    .backup-action-grid .primary-btn,
    .backup-action-grid .secondary-btn,
    .admin-backup-shortcut .secondary-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Step 13: fitur lanjutan */
.view-mode-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto 12px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}

.view-mode-toggle span {
    color: var(--muted);
    font-size: 0.84rem;
    padding: 0 6px;
}

.view-mode-toggle button {
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.view-mode-toggle button.active {
    border-color: rgba(56, 189, 248, 0.55);
    background: var(--surface-2);
}

body.view-list .channel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

body.view-list .channel-card {
    min-height: auto;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
}

body.view-list .channel-logo-wrap {
    width: 54px;
    height: 54px;
    padding: 7px;
    border-radius: 14px;
}

body.view-list .channel-card h2 {
    text-align: left;
    font-size: 0.98rem;
}

body.view-list .channel-name-line {
    justify-content: flex-start;
}

.player-report-btn {
    border-color: rgba(239, 68, 68, 0.46);
    color: #fecaca;
}

.support-report-box,
.support-action-links {
    display: none !important;
}

.support-follow-box {
    margin: 16px auto 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
    text-align: center;
}

.support-follow-title {
    margin: 0 0 12px;
    color: var(--text);
    font-weight: 800;
}

.support-follow-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid rgba(214, 41, 118, 0.48);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text);
    font-weight: 800;
}

.support-follow-button img {
    width: 20px;
    height: 20px;
}

.stat-channel-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.stat-channel-cell img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
}

.admin-stats-shortcut {
    border-color: rgba(56, 189, 248, 0.28);
}

.admin-import-shortcut {
    border-color: rgba(245, 158, 11, 0.28);
}

@media (max-width: 520px) {
    .view-mode-toggle {
        width: 100%;
    }

    .view-mode-toggle button {
        flex: 1;
    }

    body.view-list .channel-card {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    body.view-list .channel-logo-wrap {
        width: 50px;
        height: 50px;
    }
}

/* Step 14: layout admin landscape */
.channel-view-toolbar {
    display: flex;
    justify-content: center;
    margin: -4px 0 16px;
}

.site-footer > .view-mode-toggle {
    display: none !important;
}

.view-mode-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}

.view-mode-toggle span {
    color: var(--muted);
    font-size: 0.84rem;
    padding: 0 6px;
}

.view-mode-toggle button {
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.view-mode-toggle button.active {
    border-color: rgba(56, 189, 248, 0.55);
    background: var(--surface-2);
}

body.view-list .channel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

body.view-list .channel-card {
    min-height: auto;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
}

body.view-list .channel-logo-wrap {
    width: 54px;
    height: 54px;
    padding: 7px;
    border-radius: 14px;
}

body.view-list .channel-card h2 {
    text-align: left;
    font-size: 0.98rem;
}

body.view-list .channel-name-line {
    justify-content: flex-start;
}

.admin-polished .admin-page {
    width: min(1180px, calc(100% - 28px));
}

.admin-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.admin-shortcut-grid .admin-card {
    margin: 0;
    min-height: 168px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admin-shortcut-grid h2 {
    margin-bottom: 8px;
}

.admin-shortcut-grid p {
    margin: 0 0 10px;
}

.admin-shortcut-grid .secondary-btn {
    width: 100%;
}

.admin-polished .admin-layout {
    align-items: start;
}

.admin-polished .admin-card {
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
}

.admin-polished .admin-form-polished {
    gap: 16px;
}

.admin-polished .admin-form-polished label {
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: rgba(15, 20, 34, 0.5);
}

.admin-polished .admin-form-polished .check-label {
    padding: 12px;
}

.admin-mobile-toolbar {
    display: grid;
    gap: 10px;
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
}

.admin-mobile-toolbar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-mobile-toolbar-title span {
    color: var(--muted);
    font-size: 0.88rem;
}

.admin-mobile-search {
    width: 100%;
    min-height: 46px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
    outline: none;
}

.admin-mobile-search:focus {
    border-color: rgba(56, 189, 248, 0.68);
}

.admin-polished .admin-table tbody tr:hover {
    background: rgba(56, 189, 248, 0.04);
}

.admin-polished .admin-table td,
.admin-polished .admin-table th {
    white-space: nowrap;
}

.admin-polished .admin-table td:nth-child(2),
.admin-polished .admin-table td:nth-child(3) {
    white-space: normal;
}

.admin-touch-actions {
    gap: 8px;
}

@media (max-width: 760px) {
    .admin-polished .admin-page {
        width: min(100% - 18px, 760px);
    }

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

    .admin-polished .admin-card {
        padding: 15px;
        border-radius: 18px;
    }

    .admin-polished .admin-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-polished .form-actions,
    .admin-polished .refresh-actions,
    .admin-polished .table-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-polished .form-actions > *,
    .admin-polished .refresh-actions > *,
    .admin-polished .table-actions > * {
        width: 100%;
        justify-content: center;
    }

    .admin-polished .admin-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 10px;
    }

    .admin-polished .admin-table thead {
        display: none;
    }

    .admin-polished .admin-table,
    .admin-polished .admin-table tbody,
    .admin-polished .admin-table tr,
    .admin-polished .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-polished .admin-table tr {
        border: 1px solid var(--line);
        border-radius: 18px;
        background: var(--surface-soft);
        padding: 10px;
    }

    .admin-polished .admin-table td {
        display: grid;
        grid-template-columns: minmax(92px, 34%) 1fr;
        align-items: center;
        gap: 10px;
        border: 0;
        padding: 8px 4px;
        white-space: normal;
    }

    .admin-polished .admin-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.76rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
}

@media (orientation: landscape) and (max-height: 560px) {
    body:not(.player-fullscreen-mode)::after {
        content: none !important;
        display: none !important;
    }

    body:not(.player-fullscreen-mode) .site-header,
    body:not(.player-fullscreen-mode) .main-content,
    body:not(.player-fullscreen-mode) .site-footer,
    body:not(.player-fullscreen-mode) .admin-page {
        width: min(var(--container), calc(100% - 24px)) !important;
        max-width: var(--container) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body:not(.player-fullscreen-mode) .site-header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        border-radius: 0 0 18px 18px;
    }

    body:not(.player-fullscreen-mode) .brand span {
        display: inline !important;
        max-width: none !important;
    }

    body:not(.player-fullscreen-mode) .hero-panel {
        padding: 20px !important;
    }

    body:not(.player-fullscreen-mode) .hero-panel h1 {
        font-size: clamp(1.6rem, 4vw, 2.6rem) !important;
    }

    body:not(.player-fullscreen-mode) .channel-grid,
    body:not(.player-fullscreen-mode) .skeleton-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }

    body:not(.player-fullscreen-mode).view-list .channel-grid {
        grid-template-columns: 1fr !important;
    }

    body:not(.player-fullscreen-mode) .channel-card {
        min-height: 136px !important;
    }

    body:not(.player-fullscreen-mode) .modal-panel {
        width: min(1060px, calc(100vw - 24px)) !important;
        max-height: calc(100vh - 24px) !important;
        border-radius: 22px !important;
    }

    body:not(.player-fullscreen-mode) .admin-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body:not(.player-fullscreen-mode) .admin-shortcut-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body:not(.player-fullscreen-mode) .admin-table {
        display: table !important;
        width: 100% !important;
        min-width: 720px !important;
        border-collapse: collapse !important;
        border-spacing: 0 !important;
    }

    body:not(.player-fullscreen-mode) .admin-table thead {
        display: table-header-group !important;
    }

    body:not(.player-fullscreen-mode) .admin-table tbody {
        display: table-row-group !important;
    }

    body:not(.player-fullscreen-mode) .admin-table tr {
        display: table-row !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 0 !important;
    }

    body:not(.player-fullscreen-mode) .admin-table td,
    body:not(.player-fullscreen-mode) .admin-table th {
        display: table-cell !important;
        width: auto !important;
        border-bottom: 1px solid var(--line) !important;
        padding: 10px !important;
        white-space: nowrap !important;
    }

    body:not(.player-fullscreen-mode) .admin-table td::before {
        display: none !important;
        content: none !important;
    }

    body:not(.player-fullscreen-mode) .form-actions,
    body:not(.player-fullscreen-mode) .refresh-actions,
    body:not(.player-fullscreen-mode) .table-actions {
        display: flex !important;
        flex-wrap: wrap !important;
    }
}

@media (orientation: landscape) and (max-height: 430px) {
    body:not(.player-fullscreen-mode) .channel-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }

    body:not(.player-fullscreen-mode) .channel-card {
        min-height: 120px !important;
        padding: 8px !important;
    }

    body:not(.player-fullscreen-mode) .channel-card h2 {
        font-size: 0.78rem !important;
    }
}

/* Step 15: clean fullscreen player */
.player-box:fullscreen .player-quick-tools,
.player-box:fullscreen .player-status-panel,
.player-box:-webkit-full-screen .player-quick-tools,
.player-box:-webkit-full-screen .player-status-panel,
body.player-fullscreen-mode .player-quick-tools,
body.player-fullscreen-mode .player-status-panel {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.player-fullscreen-mode .player-mount {
    background: #000;
}

body.player-fullscreen-mode .player-mount iframe,
body.player-fullscreen-mode .player-mount video {
    width: 100% !important;
    height: 100% !important;
}

.player-status-panel.is-soft {
    display: none;
}
.han-update-notice{position:fixed;left:50%;bottom:18px;z-index:9999;transform:translateX(-50%);display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:999px;background:#111827;color:#fff;box-shadow:0 12px 30px rgba(0,0,0,.28);font-size:14px}.han-update-notice button{border:0;border-radius:999px;padding:8px 12px;background:#fff;color:#111827;font-weight:700;cursor:pointer}.health-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.health-box{border:1px solid rgba(148,163,184,.35);border-radius:14px;padding:14px}.health-ok{color:#047857;font-weight:700}.health-bad{color:#b91c1c;font-weight:700}.maintenance-on{background:#fee2e2;color:#991b1b}.maintenance-off{background:#dcfce7;color:#166534}.small-muted{font-size:12px;color:#64748b}.admin-actions-inline{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.admin-actions-inline button,.admin-actions-inline a{margin-top:0}.import-preview-valid{color:#047857;font-weight:700}.import-preview-invalid{color:#b91c1c;font-weight:700}.stat-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:18px 0}.stat-summary div{border:1px solid rgba(148,163,184,.35);border-radius:14px;padding:14px}.stat-summary strong{display:block;font-size:24px}
.final-admin-shell{
    max-width:1180px;
    margin:18px auto 10px;
    padding:18px;
    border:1px solid rgba(148,163,184,.26);
    border-radius:24px;
    background:
        radial-gradient(circle at top left,rgba(59,130,246,.16),transparent 34%),
        linear-gradient(135deg,rgba(15,23,42,.96),rgba(30,41,59,.92));
    color:#f8fafc;
    box-shadow:0 18px 50px rgba(15,23,42,.20);
}
.final-admin-top{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:flex-start;
    margin-bottom:14px;
}
.final-admin-top h2{
    margin:0;
    color:#fff;
    font-size:22px;
    letter-spacing:-.02em;
}
.final-admin-kicker{
    margin:0 0 4px;
    color:#93c5fd;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.12em;
}
.final-admin-status{
    display:flex;
    gap:8px;
    justify-content:flex-end;
    flex-wrap:wrap;
}
.final-admin-badge{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:5px 10px;
    border-radius:999px;
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.14);
    color:#e5e7eb;
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
}
.final-admin-badge.warning{
    background:rgba(251,191,36,.16);
    border-color:rgba(251,191,36,.34);
    color:#fde68a;
}
.final-admin-badge.muted{
    color:#cbd5e1;
}
.final-admin-nav{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
}
.final-admin-item{
    display:flex;
    align-items:center;
    gap:12px;
    min-height:68px;
    padding:13px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(255,255,255,.07);
    color:#f8fafc;
    text-decoration:none;
    transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease;
}
.final-admin-item:hover{
    transform:translateY(-1px);
    background:rgba(255,255,255,.12);
    border-color:rgba(147,197,253,.42);
    box-shadow:0 12px 26px rgba(15,23,42,.22);
}
.final-admin-item.active{
    background:linear-gradient(135deg,rgba(37,99,235,.82),rgba(14,165,233,.54));
    border-color:rgba(191,219,254,.72);
    box-shadow:0 14px 30px rgba(37,99,235,.24);
}
.final-admin-item.public{
    background:rgba(16,185,129,.14);
    border-color:rgba(110,231,183,.28);
}
.final-admin-icon{
    display:grid;
    place-items:center;
    flex:0 0 38px;
    width:38px;
    height:38px;
    border-radius:14px;
    background:rgba(255,255,255,.12);
    color:#fff;
    font-size:18px;
    font-weight:900;
}
.final-admin-item strong{
    display:block;
    color:#fff;
    font-size:14px;
    line-height:1.1;
}
.final-admin-item small{
    display:block;
    margin-top:4px;
    color:rgba(226,232,240,.82);
    font-size:12px;
    line-height:1.2;
}
.admin-backup-shortcut,
.admin-order-shortcut,
.admin-stats-shortcut,
.admin-import-shortcut,
.admin-health-shortcut{
    display:none!important;
}
.admin-page{
    padding-top:16px;
}
@media (max-width:980px){
    .final-admin-nav{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}
@media (max-width:640px){
    .final-admin-shell{
        margin:12px 10px 8px;
        padding:14px;
        border-radius:20px;
    }
    .final-admin-top{
        display:block;
    }
    .final-admin-status{
        justify-content:flex-start;
        margin-top:12px;
    }
    .final-admin-nav{
        grid-template-columns:1fr;
    }
    .final-admin-item{
        min-height:60px;
    }
}

/* UNDO_PLAYER_STATUS_FIX */
.page-skeleton{display:none!important;}
.main-content,.site-footer,.channel-grid,.channel-card,.channel-logo,.brand-logo{opacity:1!important;visibility:visible!important;}
.channel-logo{display:block!important;object-fit:contain!important;}

/* HAN TV visual refinement - applied by fix.php 2026-05 */
:root{
    --surface-hover:rgba(30,41,59,.82);
    --soft-blue:rgba(56,189,248,.14);
    --soft-green:rgba(34,197,94,.14);
    --soft-red:rgba(239,68,68,.14);
    --soft-amber:rgba(245,158,11,.14);
}

.main-content{
    width:min(1180px,calc(100% - 32px));
}

.hero-panel-simple{
    border-radius:28px;
    background:linear-gradient(135deg,rgba(15,23,42,.98),rgba(15,23,42,.78));
}

.channel-toolbar{
    display:flex;
    align-items:center;
    gap:10px;
    margin:18px 0 12px;
}

.channel-search-input{
    min-height:50px;
    border-radius:18px;
    padding-inline:18px;
    background:rgba(15,23,42,.92);
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.02);
}

.category-bar{
    gap:10px;
    margin:14px 0 18px;
    padding:4px 2px 8px;
    scroll-snap-type:x proximity;
}

.category-pill{
    min-height:42px;
    padding:9px 16px;
    border-color:rgba(148,163,184,.22);
    background:rgba(15,23,42,.82);
    color:#dbeafe;
    font-weight:750;
}

.category-pill.active,
.category-pill[aria-pressed="true"]{
    border-color:rgba(56,189,248,.78);
    background:linear-gradient(135deg,#2563eb,#0ea5e9);
    color:#fff;
    box-shadow:0 12px 28px rgba(14,165,233,.18);
}

.channel-grid{
    grid-template-columns:repeat(auto-fill,minmax(156px,1fr));
    gap:14px;
    align-items:stretch;
}

.channel-card{
    min-height:172px;
    height:100%;
    padding:14px;
    border-radius:22px;
    background:linear-gradient(180deg,rgba(15,23,42,.96),rgba(15,23,42,.82));
    border-color:rgba(148,163,184,.16);
    box-shadow:0 12px 32px rgba(0,0,0,.18);
}

.channel-card:hover{
    background:linear-gradient(180deg,rgba(30,41,59,.98),rgba(15,23,42,.9));
}

.channel-logo-wrap{
    min-height:112px;
    aspect-ratio:1/1;
    border-radius:18px;
    padding:16px;
    background:radial-gradient(circle at 50% 0%,rgba(56,189,248,.09),rgba(15,23,42,.92) 68%);
}

.channel-logo{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.channel-name-line,
.channel-card h2{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-height:40px;
    color:#f8fafc;
    font-size:.94rem;
    font-weight:800;
    text-align:center;
}

.channel-country-flag{
    flex:0 0 auto;
    line-height:1;
}

.support-section-simple{
    max-width:760px;
    margin-inline:auto;
}

/* Admin dashboard and cleaner navigation */
.final-admin-shell{
    width:min(1180px,calc(100% - 28px));
    margin:18px auto 8px;
    padding:16px;
    border:1px solid rgba(148,163,184,.18);
    border-radius:24px;
    background:rgba(15,23,42,.82);
    box-shadow:0 18px 44px rgba(0,0,0,.2);
}

.final-admin-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:14px;
}

.final-admin-kicker{
    margin:0 0 4px;
    color:#93c5fd;
    font-size:12px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.final-admin-top h2{
    margin:0;
    font-size:clamp(1.08rem,2vw,1.42rem);
}

.final-admin-status{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.final-admin-badge{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:6px 10px;
    border:1px solid rgba(56,189,248,.28);
    border-radius:999px;
    background:rgba(56,189,248,.1);
    color:#dbeafe;
    font-size:12px;
    font-weight:800;
}

.final-admin-badge.warning{
    border-color:rgba(245,158,11,.42);
    background:var(--soft-amber);
    color:#fde68a;
}

.final-admin-badge.muted{
    border-color:rgba(148,163,184,.22);
    background:rgba(148,163,184,.1);
    color:#cbd5e1;
}

.final-admin-nav,
.final-admin-nav-primary{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:10px;
}

.final-admin-item,
.final-admin-tools>summary{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:66px;
    padding:12px;
    border:1px solid rgba(148,163,184,.17);
    border-radius:18px;
    background:rgba(30,41,59,.62);
    color:#fff;
    cursor:pointer;
}

.final-admin-item.active,
.final-admin-tools[open]>summary{
    border-color:rgba(56,189,248,.55);
    background:linear-gradient(135deg,rgba(37,99,235,.75),rgba(14,165,233,.48));
}

.final-admin-item.public{
    border-color:rgba(34,197,94,.28);
}

.final-admin-icon{
    display:grid;
    place-items:center;
    flex:0 0 38px;
    width:38px;
    height:38px;
    border-radius:14px;
    background:rgba(255,255,255,.1);
    font-weight:900;
}

.final-admin-item strong,
.final-admin-tools strong{display:block;font-size:14px;line-height:1.15;}
.final-admin-item small,
.final-admin-tools small{display:block;margin-top:4px;color:rgba(226,232,240,.76);font-size:12px;line-height:1.2;}
.final-admin-tools{position:relative;min-width:0;}
.final-admin-tools>summary{list-style:none;}
.final-admin-tools>summary::-webkit-details-marker{display:none;}
.final-admin-tools-list{
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    z-index:40;
    display:grid;
    gap:8px;
    width:min(300px,88vw);
    padding:10px;
    border:1px solid rgba(148,163,184,.18);
    border-radius:18px;
    background:#0f172a;
    box-shadow:0 22px 60px rgba(0,0,0,.34);
}
.final-admin-item.compact{min-height:54px;padding:10px;}

.admin-dashboard-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin-bottom:16px;
}

.admin-stat-card{
    min-height:124px;
    padding:18px;
    border:1px solid rgba(148,163,184,.17);
    border-radius:22px;
    background:linear-gradient(180deg,rgba(15,23,42,.96),rgba(15,23,42,.72));
    box-shadow:0 14px 36px rgba(0,0,0,.18);
}

.admin-stat-card span{
    display:block;
    color:#93c5fd;
    font-size:12px;
    font-weight:900;
    letter-spacing:.06em;
    text-transform:uppercase;
}

.admin-stat-card strong{
    display:block;
    margin-top:8px;
    font-size:clamp(1.55rem,3vw,2.35rem);
    line-height:1;
}

.admin-stat-card .small-stat-text{font-size:1.08rem;line-height:1.2;}
.admin-stat-card small{display:block;margin-top:10px;color:var(--muted);}

.admin-quick-actions,
.admin-section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
}

.admin-action-row,
.admin-table-tools,
.import-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    flex-wrap:wrap;
}

.admin-tools-dropdown{position:relative;}
.admin-tools-dropdown>summary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:9px 14px;
    border:1px solid var(--line);
    border-radius:999px;
    background:var(--surface-2);
    color:#fff;
    cursor:pointer;
    list-style:none;
}
.admin-tools-dropdown>summary::-webkit-details-marker{display:none;}
.admin-tools-menu{
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    z-index:45;
    display:grid;
    gap:4px;
    min-width:210px;
    padding:8px;
    border:1px solid var(--line);
    border-radius:16px;
    background:#0f172a;
    box-shadow:0 22px 60px rgba(0,0,0,.34);
}
.admin-tools-menu a{padding:10px 12px;border-radius:12px;color:#e2e8f0;}
.admin-tools-menu a:hover{background:rgba(56,189,248,.1);}

.admin-toast{
    display:flex;
    align-items:flex-start;
    gap:10px;
    box-shadow:0 12px 34px rgba(0,0,0,.16);
}
.admin-toast::before{
    content:'✓';
    display:grid;
    place-items:center;
    flex:0 0 24px;
    width:24px;
    height:24px;
    border-radius:999px;
    background:rgba(34,197,94,.16);
    color:#86efac;
    font-weight:900;
}
.alert-error.admin-toast::before{content:'!';background:rgba(239,68,68,.16);color:#fca5a5;}

.primary-button,.primary-btn{
    border-color:rgba(56,189,248,.7)!important;
    background:linear-gradient(135deg,var(--brand-2),#0ea5e9)!important;
    color:#fff!important;
}
.secondary-button,.secondary-btn,.secondary{
    border-color:rgba(148,163,184,.22)!important;
    background:rgba(30,41,59,.76)!important;
    color:#e5e7eb!important;
}
.danger-button,.small-btn.danger,.danger{
    border-color:rgba(239,68,68,.42)!important;
    background:rgba(127,29,29,.34)!important;
    color:#fecaca!important;
}
.small-btn:not(.danger){
    border-color:rgba(56,189,248,.28);
    background:rgba(14,165,233,.12);
    color:#e0f2fe;
}

.admin-table{
    border-collapse:separate;
    border-spacing:0 8px;
}
.admin-table th{
    color:#93c5fd;
    font-size:12px;
    letter-spacing:.06em;
    text-transform:uppercase;
    border-bottom:0!important;
}
.admin-table td{
    background:rgba(15,23,42,.64);
    border-top:1px solid rgba(148,163,184,.12);
    border-bottom:1px solid rgba(148,163,184,.12);
}
.admin-table tbody tr td:first-child{border-left:1px solid rgba(148,163,184,.12);border-radius:14px 0 0 14px;}
.admin-table tbody tr td:last-child{border-right:1px solid rgba(148,163,184,.12);border-radius:0 14px 14px 0;}
.table-logo{
    width:50px;
    height:50px;
    object-fit:contain;
    border-radius:14px;
    background:rgba(15,23,42,.9);
    border:1px solid rgba(148,163,184,.14);
    padding:6px;
}
.admin-channel-name{display:block;color:#fff;font-size:14px;}
.admin-channel-meta{display:block;margin-top:4px;color:var(--muted);font-size:12px;}
.admin-mini-search,.admin-mini-select{
    min-height:42px;
    border:1px solid var(--line);
    border-radius:14px;
    background:rgba(15,23,42,.86);
    color:#fff;
    padding:9px 12px;
}
.admin-mini-search{min-width:min(280px,58vw);}
.admin-table-empty{text-align:center!important;color:var(--muted)!important;padding:18px!important;}
.table-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;}

.import-workspace .table-wrap{margin-top:14px;}
.import-table input,.import-table select{
    min-height:42px;
    border-radius:12px;
}
.import-table .url-input{min-width:360px;}
.import-preview-valid{color:#86efac;font-weight:800;}
.import-preview-invalid{color:#fca5a5;font-weight:800;}

.admin-backup-shortcut,
.admin-order-shortcut,
.admin-stats-shortcut,
.admin-import-shortcut,
.admin-health-shortcut{
    display:none!important;
}

@media (max-width:980px){
    .final-admin-nav,.final-admin-nav-primary{grid-template-columns:repeat(2,minmax(0,1fr));}
    .admin-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
    .admin-quick-actions,.admin-section-head{align-items:stretch;flex-direction:column;}
    .admin-action-row,.admin-table-tools{justify-content:flex-start;width:100%;}
}

@media (max-width:680px){
    .main-content,.admin-page{width:min(100% - 20px,1180px);margin-top:14px;}
    .site-header{padding-inline:10px;}
    .brand span{font-size:.95rem;}
    .brand-logo{width:34px;height:34px;border-radius:10px;}
    .hero-panel-simple{padding:20px;border-radius:22px;}
    .channel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
    .channel-card{min-height:152px;padding:11px;border-radius:18px;}
    .channel-logo-wrap{min-height:92px;padding:12px;border-radius:15px;}
    .channel-name-line,.channel-card h2{font-size:.84rem;min-height:34px;}
    .category-bar{margin-inline:-2px;padding-bottom:10px;}
    .category-pill{min-height:40px;padding:8px 13px;font-size:.9rem;}
    .support-section-simple{border-radius:20px;}
    .final-admin-shell{width:calc(100% - 20px);padding:13px;border-radius:20px;}
    .final-admin-top{display:block;}
    .final-admin-status{justify-content:flex-start;margin-top:12px;}
    .final-admin-nav,.final-admin-nav-primary,.admin-dashboard-grid{grid-template-columns:1fr;}
    .final-admin-item,.final-admin-tools>summary{min-height:58px;}
    .final-admin-tools-list,.admin-tools-menu{position:static;width:100%;margin-top:8px;}
    .admin-stat-card{min-height:auto;padding:15px;}
    .admin-card{padding:15px;border-radius:18px;}
    .admin-mini-search,.admin-mini-select{width:100%;}
    .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;}
    .admin-table{min-width:720px;}
    .import-table{min-width:940px;}
}

/* HAN TV FINAL FRONT VISUAL FIX START */
/* Final front visual polish: professional, clean, 3-column mobile. */
body {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 34vw),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 32vw),
        linear-gradient(180deg, #050816 0%, #070a12 42%, #050816 100%);
}

.site-header {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.site-header .brand {
    margin-inline: auto;
}

.hero-panel.hero-panel-simple,
.hero-panel {
    overflow: hidden;
    position: relative;
    min-height: 190px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.78)),
        radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.28), transparent 34%),
        radial-gradient(circle at 15% 85%, rgba(37, 99, 235, 0.22), transparent 32%);
    border-color: rgba(148, 163, 184, 0.22);
}

.hero-panel::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -80px;
    width: 230px;
    height: 230px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.13);
    filter: blur(2px);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-kicker-row {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 12px;
}

.hero-kicker-row .hero-eyebrow {
    margin-bottom: 0;
}

.hero-install-btn {
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.18);
}

.hero-panel h1 {
    max-width: 720px;
    font-size: clamp(1.65rem, 4.8vw, 3.15rem);
}

.hero-panel p {
    max-width: 700px;
}

.footer-action-row,
.site-footer .admin-link,
.empty-state a[href="admin.php"] {
    display: none !important;
}

.channel-toolbar {
    position: relative;
    margin: 18px 0 12px;
}

.channel-search-input,
.search-input.channel-search-input {
    width: 100%;
    min-height: 50px;
    padding-left: 18px;
    padding-right: 18px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 12px 26px rgba(0, 0, 0, 0.12);
}

.category-bar {
    gap: 9px;
    margin: 12px 0 18px;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
}

.category-pill {
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.86);
    border-color: rgba(148, 163, 184, 0.22);
    color: rgba(248, 250, 252, 0.88);
    font-weight: 800;
    font-size: 0.9rem;
}

.category-pill.active,
.category-pill[aria-pressed="true"] {
    color: #ffffff;
    border-color: rgba(125, 211, 252, 0.74);
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.18);
}

.channel-grid {
    gap: 14px;
}

.channel-card {
    overflow: hidden;
    min-height: 158px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.86));
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.channel-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.10), transparent 42%);
    opacity: 0;
    transition: opacity 0.16s ease;
    pointer-events: none;
}

.channel-card:hover::before {
    opacity: 1;
}

.channel-logo-wrap {
    min-height: 0;
    background: rgba(2, 6, 23, 0.36);
    border-color: rgba(148, 163, 184, 0.14);
}

.channel-logo {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

.channel-name-line {
    font-weight: 850;
}

.support-section.support-section-simple {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.84));
    border-color: rgba(148, 163, 184, 0.18);
}

@media (max-width: 760px) {
    .main-content,
    .site-footer {
        width: min(100% - 18px, var(--container));
    }

    .site-header {
        padding: 10px 12px;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
        border-radius: 11px;
    }

    .hero-panel.hero-panel-simple,
    .hero-panel {
        min-height: 0;
        margin-bottom: 12px;
        padding: 17px;
        border-radius: 22px;
    }

    .hero-kicker-row {
        display: flex;
        justify-content: space-between;
        width: 100%;
        gap: 8px;
    }

    .hero-eyebrow {
        font-size: 0.68rem;
        padding: 5px 9px;
    }

    .hero-install-btn {
        min-height: 30px;
        padding: 5px 10px;
        font-size: 0.72rem;
    }

    .hero-panel h1 {
        font-size: 1.42rem;
        line-height: 1.08;
    }

    .hero-panel p {
        margin-top: 9px;
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .channel-toolbar {
        margin: 12px 0 9px;
    }

    .channel-search-input,
    .search-input.channel-search-input {
        min-height: 44px;
        border-radius: 15px;
        font-size: 0.92rem;
    }

    .category-bar {
        margin: 9px 0 12px;
        gap: 7px;
    }

    .category-pill {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 0.78rem;
    }

    .channel-grid,
    body:not(.view-list) .channel-grid,
    body:not(.player-fullscreen-mode) .channel-grid,
    body:not(.player-fullscreen-mode) .skeleton-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .channel-card,
    body:not(.view-list) .channel-card,
    body:not(.player-fullscreen-mode) .channel-card {
        min-height: 116px !important;
        padding: 7px !important;
        gap: 6px !important;
        border-radius: 14px !important;
    }

    .channel-logo-wrap,
    body:not(.view-list) .channel-logo-wrap {
        aspect-ratio: 1 / 1;
        padding: 8px !important;
        border-radius: 12px !important;
    }

    .channel-card h2,
    .channel-name-line,
    body:not(.view-list) .channel-card h2 {
        font-size: 0.69rem !important;
        line-height: 1.18 !important;
        min-height: 1.4em;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .channel-country-flag {
        font-size: 0.78rem;
    }

    .support-section {
        margin-top: 18px;
        padding: 16px;
        border-radius: 20px;
    }

    .support-section h2 {
        font-size: 1.08rem;
    }

    .support-simple-description {
        font-size: 0.86rem;
    }
}

@media (max-width: 370px) {
    .channel-grid,
    body:not(.view-list) .channel-grid,
    body:not(.player-fullscreen-mode) .channel-grid,
    body:not(.player-fullscreen-mode) .skeleton-grid {
        gap: 6px !important;
    }

    .channel-card,
    body:not(.view-list) .channel-card,
    body:not(.player-fullscreen-mode) .channel-card {
        min-height: 106px !important;
        padding: 6px !important;
    }

    .channel-logo-wrap,
    body:not(.view-list) .channel-logo-wrap {
        padding: 7px !important;
    }

    .channel-card h2,
    .channel-name-line,
    body:not(.view-list) .channel-card h2 {
        font-size: 0.64rem !important;
    }
}
/* HAN TV FINAL FRONT VISUAL FIX END */

/* HAN_VISUAL_FIX_START */
:root {
    --han-soft-blue: rgba(56, 189, 248, 0.13);
    --han-card-border: rgba(255, 255, 255, 0.10);
}
html, body, button, input, textarea, select {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
body { font-size: 14.5px; }
.hero-kicker-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hero-eyebrow { display: inline-flex !important; align-items: center !important; gap: 8px !important; margin-bottom: 0; }
.han-live-dot {
    display: inline-block !important;
    position: relative !important;
    width: 9px !important;
    height: 9px !important;
    min-width: 9px !important;
    min-height: 9px !important;
    border-radius: 999px !important;
    background: #ef4444 !important;
    box-shadow: 0 0 0 0 rgba(239,68,68,.78), 0 0 14px rgba(239,68,68,.76) !important;
    animation: hanLivePulse 1.1s ease-out infinite !important;
    flex: 0 0 auto !important;
}
@keyframes hanLivePulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(239,68,68,.78), 0 0 12px rgba(239,68,68,.76); }
    55% { transform: scale(1.08); opacity: .92; box-shadow: 0 0 0 7px rgba(239,68,68,0), 0 0 18px rgba(239,68,68,.90); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(239,68,68,0), 0 0 12px rgba(239,68,68,.76); }
}
.hero-channel-counter {
    display: inline-flex !important;
    align-items: baseline;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 14px;
    border: 1px solid rgba(56,189,248,.24);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(56,189,248,.12), rgba(14,165,233,.05));
}
.hero-channel-counter-number {
    font-size: clamp(1.35rem, 4vw, 2.05rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    color: #e0f2fe;
}
.hero-channel-counter-label { color: var(--muted); font-size: .86rem; font-weight: 650; }
#installBtn.hero-install-btn { min-height: 36px; padding: 7px 12px; font-size: .82rem; font-weight: 750; letter-spacing: -0.01em; }
#installBtn .han-android-icon { width: 16px; height: 16px; display: inline-block; flex: 0 0 auto; }
@media (min-width: 1025px) { #installBtn, #installBtn.hero-install-btn { display: none !important; visibility: hidden !important; } }
.category-pill {
    --han-cat-rgb: 56, 189, 248;
    --han-cat-bg-alpha: .16;
    background: linear-gradient(135deg, rgba(var(--han-cat-rgb), var(--han-cat-bg-alpha)), rgba(15,23,42,.86)) !important;
    border-color: rgba(var(--han-cat-rgb), .38) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 8px 18px rgba(var(--han-cat-rgb), .08);
    font-size: .84rem;
    font-weight: 750;
}
.category-pill.active,
.category-pill[aria-pressed="true"] {
    color: #fff !important;
    border-color: rgba(var(--han-cat-rgb), .68) !important;
    background: linear-gradient(135deg, rgba(var(--han-cat-rgb), .42), rgba(15,23,42,.74)) !important;
    box-shadow: 0 10px 24px rgba(var(--han-cat-rgb), .16);
}
.channel-view-toolbar, .view-mode-toggle, [data-view-mode] { display: none !important; visibility: hidden !important; height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; }
body.view-list .channel-grid, .channel-grid { display: grid !important; grid-template-columns: repeat(7, minmax(0, 1fr)) !important; align-items: stretch; gap: 10px; }
.skeleton-grid { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; gap: 10px; }
.channel-card {
    --han-cat-rgb: 56, 189, 248;
    min-height: 136px;
    gap: 8px;
    padding: 10px;
    background:
        radial-gradient(circle at top left, rgba(var(--han-cat-rgb), .28), rgba(var(--han-cat-rgb), .10) 42%, transparent 72%),
        linear-gradient(180deg, rgba(15,23,42,.96), rgba(15,23,42,.86)) !important;
    border-color: rgba(var(--han-cat-rgb), .40) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 12px 26px rgba(0,0,0,.14), 0 0 0 1px rgba(var(--han-cat-rgb), .06);
}
.channel-card::before {
    opacity: .42 !important;
    background: linear-gradient(135deg, rgba(var(--han-cat-rgb), .18), transparent 48%) !important;
}
.channel-logo-wrap { padding: 11px; border-radius: 14px; background: rgba(2,6,23,.34); border-color: rgba(var(--han-cat-rgb), .18) !important; }
.channel-card h2, .channel-name-line { font-size: .76rem; font-weight: 700; line-height: 1.22; letter-spacing: -0.02em; }
.channel-load-more-wrap { display: flex; justify-content: center; margin: 16px 0 4px; }
.channel-load-more-wrap[hidden] { display: none !important; }
.channel-load-more-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 16px; border: 1px solid rgba(56,189,248,.34); border-radius: 999px; color: #e0f2fe; background: rgba(56,189,248,.10); font-weight: 800; font-size: .88rem; cursor: pointer; }
.channel-load-more-btn small { color: var(--muted); font-weight: 650; }
.han-visual-limited-hidden { display: none !important; }
@media (max-width: 1024px) and (min-width: 761px) {
    body.view-list .channel-grid, .channel-grid, .skeleton-grid { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; gap: 9px; }
    .channel-card { min-height: 128px; }
}
@media (max-width: 760px) {
    body { font-size: 13px; }
    .main-content, .admin-page { width: min(100% - 12px, var(--container)); }
    .site-header { padding: 9px 10px; }
    .brand-logo { width: 34px; height: 34px; border-radius: 10px; }
    .hero-panel { padding: 16px; border-radius: 18px; }
    .hero-panel h1 { font-size: clamp(1.30rem, 5.8vw, 1.72rem); letter-spacing: -0.045em; }
    .hero-panel p { margin-top: 8px; font-size: .82rem; line-height: 1.45; }
    .hero-eyebrow { font-size: .64rem; padding: 5px 9px; }
    .han-live-dot { width: 8px !important; height: 8px !important; min-width: 8px !important; min-height: 8px !important; }
    .hero-channel-counter { margin-top: 12px; padding: 8px 11px; border-radius: 14px; }
    .hero-channel-counter-number { font-size: 1.25rem; }
    .hero-channel-counter-label { font-size: .73rem; }
    .channel-toolbar { margin: 12px 0 9px; }
    .channel-search-input { min-height: 42px; border-radius: 15px; font-size: .82rem; padding: 9px 11px; }
    .category-bar { gap: 7px; margin: 12px 0; }
    .category-pill { min-height: 34px; padding: 7px 10px; font-size: .70rem; }
    html body #channelGrid.channel-grid,
    html body.view-list #channelGrid.channel-grid,
    html body.view-grid #channelGrid.channel-grid,
    html body:not(.view-list) #channelGrid.channel-grid,
    html body:not(.player-fullscreen-mode) #channelGrid.channel-grid,
    html body:not(.player-fullscreen-mode) .channel-grid,
    html body .channel-grid,
    html body .skeleton-grid,
    html body:not(.player-fullscreen-mode) .skeleton-grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
    html body #channelGrid .channel-card,
    html body .channel-card,
    html body:not(.view-list) .channel-card,
    html body:not(.player-fullscreen-mode) .channel-card { min-width: 0 !important; width: auto !important; min-height: 100px !important; padding: 6px !important; border-radius: 13px !important; gap: 5px !important; }
    .channel-logo-wrap { padding: 6px !important; border-radius: 10px !important; }
    .channel-card h2, .channel-name-line { font-size: .56rem !important; line-height: 1.12 !important; letter-spacing: -0.025em; min-height: 1.32em; }
    .channel-country-flag { font-size: .66rem !important; }
    .channel-load-more-btn { min-height: 38px; padding: 8px 12px; font-size: .74rem; }
    .player-quick-tools {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 4px !important;
        padding: 7px 6px !important;
        align-items: stretch !important;
    }
    .player-tool-btn,
    .player-report-btn {
        min-width: 0 !important;
        width: 100% !important;
        min-height: 31px !important;
        padding: 5px 3px !important;
        border-radius: 999px !important;
        font-size: clamp(.52rem, 2.05vw, .64rem) !important;
        line-height: 1.05 !important;
        letter-spacing: -0.035em !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: clip !important;
    }
}
@media (max-width: 370px) {
    html body #channelGrid.channel-grid,
    html body .channel-grid,
    html body .skeleton-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 5px !important; }
    html body #channelGrid .channel-card,
    html body .channel-card { min-height: 94px !important; padding: 5px !important; }
    .channel-logo-wrap { padding: 5px !important; }
    .channel-card h2, .channel-name-line { font-size: .52rem !important; }
    .player-tool-btn, .player-report-btn { font-size: .50rem !important; padding-left: 2px !important; padding-right: 2px !important; }
}
/* HAN_VISUAL_FIX_END */
/* HAN_TV_CLICKHOUSE_THEME_START */
/* Visual theme generated from DESIGN.md: black canvas + electric yellow */
:root {
    --bg: #0a0a0a;
    --surface: #121212;
    --surface-2: #1a1a1a;
    --surface-soft: #121212;
    --surface-elevated: #242424;
    --text: #ffffff;
    --muted: #888888;
    --body: #cccccc;
    --body-strong: #e6e6e6;
    --line: #2a2a2a;
    --line-strong: #3a3a3a;
    --brand: #faff69;
    --brand-2: #e6eb52;
    --brand-disabled: #3a3a1f;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --radius: 12px;
    --radius-md: 8px;
    --shadow: none;
    --container: 1280px;
}

html {
    background: #0a0a0a !important;
    color-scheme: dark;
}

body {
    color: #ffffff !important;
    background: #0a0a0a !important;
    font-family: Inter, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    line-height: 1.55;
}

body::before {
    display: none !important;
}

body > * {
    position: relative;
}

a {
    color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.channel-card:focus-visible {
    outline: 3px solid rgba(250, 255, 105, 0.72) !important;
    outline-offset: 3px;
}

.site-header {
    min-height: 64px;
    padding-top: 12px;
    padding-bottom: 12px;
    background: rgba(10, 10, 10, 0.96) !important;
    border-bottom: 1px solid #2a2a2a !important;
    backdrop-filter: blur(16px);
    box-shadow: none !important;
}

.brand {
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px !important;
    background: #1a1a1a !important;
    border-color: #2a2a2a !important;
    box-shadow: none !important;
}

.main-content,
.admin-page {
    width: min(1280px, calc(100% - 32px));
    margin-top: 24px;
}

.hero-panel {
    padding: clamp(40px, 8vw, 96px) !important;
    background: #0a0a0a !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.hero-copy {
    max-width: 880px;
}

.hero-kicker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-eyebrow {
    margin-bottom: 14px !important;
    color: #faff69 !important;
    background: #1a1a1a !important;
    border: 1px solid #3a3a3a !important;
    border-radius: 9999px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
}

.han-live-dot {
    background: #faff69 !important;
    box-shadow: 0 0 0 5px rgba(250, 255, 105, 0.12) !important;
}

.hero-panel h1 {
    max-width: 980px;
    color: #ffffff !important;
    font-size: clamp(2.25rem, 7vw, 4.5rem) !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.045em !important;
}

.hero-panel p {
    max-width: 760px;
    margin-top: 16px !important;
    color: #cccccc !important;
    font-size: clamp(1rem, 2vw, 1.125rem) !important;
    line-height: 1.65 !important;
}

.hero-channel-counter {
    margin-top: 28px !important;
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 14px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.hero-channel-counter-number {
    color: #faff69 !important;
    font-size: clamp(2.4rem, 6vw, 3.5rem) !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -0.035em !important;
}

.hero-channel-counter-label {
    color: #cccccc !important;
    font-size: 16px !important;
}

.channel-toolbar {
    margin: 24px 0 14px !important;
}

.search-input,
.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-mobile-search {
    min-height: 40px !important;
    color: #ffffff !important;
    background: #1a1a1a !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.search-input {
    width: min(100%, 420px) !important;
}

.search-input::placeholder,
.admin-form input::placeholder,
.admin-form textarea::placeholder {
    color: #888888 !important;
}

.search-input:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.admin-mobile-search:focus {
    border-color: #faff69 !important;
    box-shadow: 0 0 0 3px rgba(250, 255, 105, 0.14) !important;
}

.install-btn,
.admin-link,
.primary-link,
.primary-btn,
.secondary-btn,
.small-btn,
.modal-btn,
.category-pill,
.support-qr-button,
.qris-modal-close,
.player-tool-btn,
.support-action-button,
.support-report-button,
.admin-quick-jump a {
    min-height: 40px !important;
    border-radius: 8px !important;
    border: 1px solid #2a2a2a !important;
    color: #ffffff !important;
    background: #1a1a1a !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

.install-btn,
.primary-btn,
.primary-link,
.category-pill.active,
.category-pill[aria-pressed="true"],
.badge.active,
.support-action-button.support-wa,
.support-report-button.support-wa {
    color: #0a0a0a !important;
    background: #faff69 !important;
    border-color: #faff69 !important;
}

.secondary-btn,
.modal-btn,
.small-btn,
.admin-link {
    background: #1a1a1a !important;
    color: #ffffff !important;
}

.install-btn:hover,
.primary-btn:hover,
.primary-link:hover,
.category-pill.active:hover,
.category-pill[aria-pressed="true"]:hover {
    background: #e6eb52 !important;
    border-color: #e6eb52 !important;
}

.secondary-btn:hover,
.modal-btn:hover,
.small-btn:hover,
.admin-link:hover,
.category-pill:hover,
.player-tool-btn:hover,
.support-action-button:hover,
.support-report-button:hover,
.admin-quick-jump a:hover {
    border-color: #faff69 !important;
    transform: translateY(-1px);
}

button:disabled,
.small-btn:disabled {
    color: #888888 !important;
    background: #3a3a1f !important;
    border-color: #3a3a1f !important;
    opacity: 0.7 !important;
}

.category-bar {
    gap: 8px !important;
    margin: 14px 0 24px !important;
}

.category-pill {
    padding: 8px 14px !important;
    color: #888888 !important;
    background: transparent !important;
    border-color: transparent !important;
}

.category-pill.active,
.category-pill[aria-pressed="true"] {
    color: #ffffff !important;
    background: #1a1a1a !important;
    border-color: #2a2a2a !important;
}

.channel-grid {
    gap: 18px !important;
}

.channel-card {
    background: #1a1a1a !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    overflow: hidden;
}

.channel-card::before,
.channel-card::after {
    display: none !important;
}

.channel-card:hover {
    border-color: #faff69 !important;
    transform: translateY(-3px) !important;
}

.channel-logo-wrap {
    background: #242424 !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.channel-logo {
    border-radius: 8px !important;
}

.channel-card h2,
.channel-name-line {
    color: #ffffff !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
}

.channel-country-flag,
.country-chip,
.badge-pill,
.badge,
.version-box span,
.player-status-panel {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 9999px !important;
    box-shadow: none !important;
}

.no-result,
.muted,
.small-note,
.empty-state p,
.support-simple-description,
.qris-modal-description,
.app-version-text,
.version-box small {
    color: #888888 !important;
}

.empty-state,
.support-section,
.admin-card,
.alert,
.modal-panel,
.qris-modal-panel,
.skeleton-hero,
.skeleton-card,
.support-report-box,
.player-status-panel,
.version-box,
.refresh-admin-card,
.channel-order-item,
.category-order-item {
    background: #1a1a1a !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.support-section {
    color: #0a0a0a !important;
    background: #faff69 !important;
    border-color: #faff69 !important;
    padding: clamp(32px, 6vw, 64px) !important;
}

.support-section h2,
.support-section p,
.support-section .support-simple-description {
    color: #0a0a0a !important;
}

.support-qr-button {
    color: #ffffff !important;
    background: #0a0a0a !important;
    border-color: #0a0a0a !important;
}

.support-simple-qr,
.qris-modal-image,
.current-logo img,
.table-logo,
.current-qris-preview img {
    border-radius: 12px !important;
    border: 1px solid #2a2a2a !important;
    box-shadow: none !important;
}

.modal,
.qris-modal {
    background: rgba(0, 0, 0, 0.78) !important;
    backdrop-filter: blur(12px);
}

.modal-backdrop,
.qris-modal-backdrop {
    background: rgba(0, 0, 0, 0.76) !important;
}

.modal-panel,
.qris-modal-panel {
    background: #121212 !important;
}

.modal-header {
    border-bottom: 1px solid #2a2a2a !important;
}

.modal-channel-logo {
    background: #242424 !important;
    border-color: #2a2a2a !important;
    border-radius: 12px !important;
}

.modal-label {
    color: #faff69 !important;
    letter-spacing: 1.5px !important;
}

.player-box,
.player-mount {
    background: #000000 !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.player-error {
    color: #ef4444 !important;
    background: #1a1a1a !important;
}

.admin-layout {
    gap: 18px !important;
}

.admin-card h1,
.admin-card h2,
.support-section h2,
.qris-modal-panel h2,
.empty-state h1 {
    color: #ffffff;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
}

.support-section h2 {
    color: #0a0a0a !important;
}

.admin-form label,
.table-wrap,
.admin-table th,
.admin-table td {
    color: #cccccc !important;
}

.table-wrap {
    background: #121212 !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.admin-table {
    background: transparent !important;
}

.admin-table th {
    color: #ffffff !important;
    background: #1a1a1a !important;
    border-bottom: 1px solid #2a2a2a !important;
    font-weight: 600 !important;
}

.admin-table td {
    border-bottom: 1px solid #2a2a2a !important;
}

.alert-error {
    color: #fecaca !important;
    background: rgba(239, 68, 68, 0.10) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

.alert-success {
    color: #bbf7d0 !important;
    background: rgba(34, 197, 94, 0.10) !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
}

.danger,
.small-btn.danger,
.admin-link.danger,
.badge.inactive {
    color: #fecaca !important;
    background: rgba(239, 68, 68, 0.10) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

.badge.active {
    color: #0a0a0a !important;
    background: #faff69 !important;
    border-color: #faff69 !important;
}

.site-footer {
    color: #888888 !important;
    background: #0a0a0a !important;
    border-top: 1px solid #2a2a2a !important;
}

.made-link {
    color: #ffffff !important;
}

.made-logo {
    border-radius: 8px !important;
    border-color: #2a2a2a !important;
    box-shadow: none !important;
}

.skeleton-hero,
.skeleton-card,
.skeleton-pills span,
.sk-line,
.sk-orb,
.sk-logo,
.sk-name {
    background: #1a1a1a !important;
    border-color: #2a2a2a !important;
    box-shadow: none !important;
}

.sk-line,
.sk-logo,
.sk-name {
    background: linear-gradient(90deg, #1a1a1a, #242424, #1a1a1a) !important;
}

.admin-mobile-toolbar,
.admin-quick-jump,
.touch-actions {
    background: #0a0a0a !important;
    border-color: #2a2a2a !important;
}

.player-status-panel.is-ok {
    color: #bbf7d0 !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
}

.player-status-panel.is-warn,
.player-status-panel.is-soft {
    color: #fde68a !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
}

.player-status-panel.is-error {
    color: #fecaca !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

@media (max-width: 767px) {
    .main-content,
    .admin-page {
        width: min(100% - 24px, 1280px) !important;
        margin-top: 16px !important;
    }

    .site-header {
        min-height: 58px;
    }

    .hero-panel {
        padding: 32px 22px !important;
    }

    .hero-panel h1 {
        font-size: clamp(2.05rem, 11vw, 2.7rem) !important;
        letter-spacing: -0.04em !important;
    }

    .hero-channel-counter {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 6px !important;
    }

    .channel-grid {
        gap: 14px !important;
    }

    .modal-panel,
    .qris-modal-panel {
        border-radius: 12px 12px 0 0 !important;
    }
}
/* HAN_TV_CLICKHOUSE_THEME_END */


/* HAN_TV_MANUAL_VISUAL_TWEAK_START */
/* Perbaikan manual: teks Instagram putih + teks hero lebih kecil dan rapi */
.support-section .support-follow-box .support-follow-title,
.support-follow-box .support-follow-title {
    color: #ffffff !important;
}

.hero-panel h1 {
    font-size: clamp(1.95rem, 5.2vw, 3.65rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.043em !important;
    max-width: 860px !important;
}

.hero-panel p {
    font-size: clamp(0.88rem, 1.35vw, 1rem) !important;
    line-height: 1.55 !important;
    max-width: 680px !important;
    margin-top: 12px !important;
}

.hero-channel-counter {
    margin-top: 22px !important;
}

.hero-channel-counter-number {
    font-size: clamp(2.05rem, 5vw, 3rem) !important;
}

.hero-channel-counter-label {
    font-size: 0.88rem !important;
    line-height: 1.35 !important;
}

@media (max-width: 767px) {
    .hero-panel {
        padding: 24px 18px !important;
        border-radius: 12px !important;
    }

    .hero-panel h1 {
        font-size: clamp(1.45rem, 7.6vw, 2rem) !important;
        line-height: 1.1 !important;
        letter-spacing: -0.04em !important;
        max-width: 100% !important;
    }

    .hero-panel p {
        font-size: 0.80rem !important;
        line-height: 1.45 !important;
        max-width: 100% !important;
        margin-top: 9px !important;
    }

    .hero-eyebrow {
        font-size: 0.60rem !important;
        padding: 5px 8px !important;
        letter-spacing: 0.9px !important;
    }

    .hero-channel-counter {
        margin-top: 16px !important;
        gap: 4px !important;
    }

    .hero-channel-counter-number {
        font-size: 2rem !important;
    }

    .hero-channel-counter-label {
        font-size: 0.74rem !important;
        line-height: 1.35 !important;
    }
}

@media (max-width: 420px) {
    .hero-panel {
        padding: 22px 16px !important;
    }

    .hero-panel h1 {
        font-size: clamp(1.35rem, 7.2vw, 1.75rem) !important;
    }

    .hero-panel p {
        font-size: 0.78rem !important;
    }

    .hero-channel-counter-number {
        font-size: 1.82rem !important;
    }

    .hero-channel-counter-label {
        font-size: 0.70rem !important;
    }
}
/* HAN_TV_MANUAL_VISUAL_TWEAK_END */
