:root {
    color-scheme: dark;
    --bg: #111111;
    --card: #1b1b1b;
    --text: #ffffff;
    --accent: #3d7cff;
    --accent-hover: #2f62c4;
    --danger: #ff5252;
    --muted: #9ca3af;
    font-family: 'Public Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-body,
.video-body,
.auth-body,
.dashboard-body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #222;
}

.brand {
    font-size: 1.5rem;
    font-weight: 600;
}

.brand-link {
    color: inherit;
    text-decoration: none;
}

.brand-link:hover {
    text-decoration: none;
}

.nav-link {
    color: var(--text);
    font-weight: 600;
}

.site-main {
    padding: 2rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: var(--card);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.video-card-title {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--text);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid #333;
}

.btn-danger {
    background: var(--danger);
    color: var(--text);
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
}

.table-link {
    color: var(--accent);
    font-weight: 600;
}

.table-link:hover {
    color: var(--accent-hover);
}

.link-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.table-actions {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.table-action-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.select-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.select-all input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--accent);
}

.select-col {
    width: 52px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.copy-status {
    font-size: 0.85rem;
    color: var(--muted);
    min-height: 1.2em;
    flex: 1 1 100%;
    margin: 0;
}

.copy-status[data-state="success"] {
    color: #4ade80;
}

.copy-status[data-state="error"] {
    color: var(--danger);
}

.site-footer {
    text-align: center;
    padding: 2rem 1rem 3rem;
    color: var(--muted);
}

.home-body .site-main {
    padding: 2.5rem 1.5rem 3.5rem;
}

.home-shell {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.home-panel {
    display: grid;
    gap: 1rem;
}

.home-panel-title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.home-text {
    margin: 0;
    line-height: 1.7;
    color: var(--muted);
}

.ad-slot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 0;
    margin: 0;
}

.ad-slot > * {
    max-width: 100%;
}

.ad-slot-horizontal,
.ad-slot-inline,
.ad-slot-rectangle {
    min-height: 0;
}

.auth-container {
    max-width: 360px;
    margin: 8vh auto;
    padding: 2.5rem;
    background: var(--card);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.auth-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.form-input {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    background: #121212;
    color: var(--text);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(61, 124, 255, 0.2);
}

.alert {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(255, 82, 82, 0.1);
    color: #ff8585;
}

.alert-success {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #222;
}

.dashboard-header h1 {
    margin: 0;
    font-size: clamp(1.5rem, 3.2vw, 1.85rem);
}

.dashboard-header nav {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.dashboard-header nav .btn {
    white-space: nowrap;
}

.dashboard-main {
    padding: 2rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    align-items: start;
}

.dashboard-table-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 0.5rem 2rem;
}

.dashboard-table-header h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.8vw, 1.65rem);
}

@media (max-width: 1100px) {
    .dashboard-main {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.dashboard-form {
    display: grid;
    gap: 1rem;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.video-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    table-layout: fixed;
}

.video-table th,
.video-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #222;
    text-align: left;
}

.video-table td {
    vertical-align: top;
}

.video-table td:first-child {
    vertical-align: middle;
}

.col-title {
    width: 22%;
}

.col-source,
.col-cdn,
.col-website {
    width: 18%;
}

.col-actions {
    width: 16%;
}

.cell-title {
    font-weight: 600;
    word-break: break-word;
}

.cell-link {
    word-break: break-word;
}

.cell-actions {
    white-space: nowrap;
}

.video-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.empty-state {
    color: var(--muted);
}

.is-hidden-row {
    display: none;
}

.table-footer {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.table-footer .btn {
    min-width: 180px;
}

.video-page {
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bonus-button-section,
.ad-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem;
}

.video-player-wrapper {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: #000;
    box-shadow: none;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.video-player-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 100vh;
    background: #000;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

/* Custom Video Controls */
.video-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.controls-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.6) 0%,
        transparent 30%,
        transparent 70%,
        rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: none;
}

.controls-overlay.visible {
    opacity: 1;
    backdrop-filter: none;
}

.control-row {
    display: flex;
    align-items: center;
    padding: 1rem;
}

.control-row-center {
    justify-content: center;
    flex: 1;
    gap: 2rem;
}

.control-row-bottom {
    justify-content: space-between;
    gap: 1rem;
}

.control-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: none;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    box-shadow: none;
}

.play-pause-btn {
    width: 70px;
    height: 70px;
    background: transparent;
    box-shadow: none;
}

.play-pause-btn:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.play-pause-btn .pause-icon {
    display: none;
}

.play-pause-btn.playing .play-icon {
    display: none;
}

.play-pause-btn.playing .pause-icon {
    display: inline;
}

.control-btn svg {
    fill: white;
    transition: all 0.2s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.control-btn:hover svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}

.volume-off,
.fullscreen-exit {
    display: none;
}

/* Progress Bar */
.progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    cursor: pointer;
    flex: 1;
    transition: height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.progress-bar:hover {
    height: 6px;
}

.progress-filled {
    height: 100%;
    background: linear-gradient(90deg, #007AFF, #00C7FF);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 8px rgba(0, 122, 255, 0.3);
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 16px;
    height: 16px;
    background: #007AFF;
    border: 3px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 12px rgba(0, 122, 255, 0.4);
}

.progress-bar:hover .progress-handle,
.progress-handle.dragging {
    opacity: 1;
}

.time-display {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 85px;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

.time-separator {
    margin: 0 0.25rem;
    opacity: 0.7;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Loading Spinner */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.loading-spinner.active {
    opacity: 1;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #007AFF;
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide cursor when controls are hidden */
.video-container.hide-cursor {
    cursor: none;
}

/* Custom fullscreen styles */
.custom-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background: #000 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.custom-fullscreen .video-player-frame {
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
    aspect-ratio: unset !important;
}

.custom-fullscreen .video-player {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain !important;
}

.fullscreen-active {
    overflow: hidden !important;
}

/* Hide other elements when in custom fullscreen */
.fullscreen-active .video-page > *:not(.video-player-wrapper) {
    display: none !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .control-row {
        padding: 0.75rem;
    }

    .control-row-bottom {
        gap: 0.75rem;
    }

    .play-pause-btn {
        font-size: 1.5rem;
        width: 50px;
        height: 50px;
    }

    .control-btn {
        min-width: 40px;
        min-height: 40px;
        font-size: 1rem;
    }

    .time-display {
        font-size: 0.8rem;
        min-width: 80px;
    }

    .progress-container {
        gap: 0.75rem;
    }
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
    .progress-handle {
        opacity: 1;
        width: 20px;
        height: 20px;
    }

    .control-btn {
        min-width: 48px;
        min-height: 48px;
    }

    .controls-overlay {
        background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.7) 100%);
    }
}

.ad-section {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.ad-horizontal,
.ad-vertical,
.ad-vertical-slot {
    width: 100%;
}

.ad-horizontal {
    display: flex;
    justify-content: center;
}

.ad-horizontal > *,
.ad-slot-horizontal > * {
    width: min(100%, 360px);
}

.ad-vertical {
    display: grid;
    gap: 1rem;
}

.ad-vertical-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ad-vertical-slot > * {
    width: 100%;
}

.ad-section iframe,
.ad-section img,
.ad-slot iframe,
.ad-slot img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .home-body .site-main {
        padding: 2rem 1.25rem 3rem;
    }

    .home-shell {
        gap: 1.25rem;
    }

    .video-player-frame {
        max-height: none;
    }

    .dashboard-header {
        padding: 1.25rem 1.5rem;
    }

    .dashboard-main {
        padding: 1.75rem;
    }

    .table-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .table-action-buttons {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 0.75rem;
        justify-items: stretch;
    }

    .table-action-buttons .btn {
        width: 100%;
    }

    .link-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

}

@media (max-width: 720px) {
    .table-responsive {
        overflow: visible;
    }

    .video-table {
        border-collapse: separate;
        border-spacing: 0;
    }

    .video-table thead {
        display: none;
    }

    .video-table,
    .video-table tbody,
    .video-table tr,
    .video-table td {
        display: block;
        width: 100%;
    }

    .video-table tr {
        border: 1px solid #1f1f1f;
        border-radius: 16px;
        padding: 1rem 1.25rem;
        margin-bottom: 1.25rem;
        background: rgba(17, 17, 17, 0.7);
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
    }

    .video-table td {
        border: none;
        padding: 0.5rem 0;
        font-size: 0.95rem;
    }

    .video-table td:first-child {
        padding-top: 0;
    }

    .video-table td:last-child {
        padding-bottom: 0;
    }

    .video-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--muted);
        margin-bottom: 0.35rem;
    }

    .video-table td[data-label="Pilih"] {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .video-table td[data-label="Pilih"]::before {
        margin-bottom: 0;
    }

    .link-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .link-actions .btn,
    .link-actions .table-link {
        width: 100%;
        text-align: center;
    }

}

@media (max-width: 540px) {
    .dashboard-main {
        padding: 1.5rem;
    }

    .table-actions {
        gap: 0.75rem;
    }

    .select-col {
        width: 40px;
    }

    .copy-status {
        font-size: 0.8rem;
    }

    .home-body .site-main {
        padding: 1.75rem 1rem 2.5rem;
    }

    .home-panel {
        gap: 0.75rem;
    }
}

@media (max-width: 640px) {
    .table-responsive {
        margin: 0 -0.5rem;
        padding: 0 0.5rem;
    }

    .link-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .link-actions .btn,
.link-actions .table-link {
        width: 100%;
        text-align: center;
    }
}

/* --- Admin Dashboard Refresh --- */
.dashboard-body {
    background: #000000;
    color: #ffffff;
    font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.dashboard-body .admin-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top, rgba(0, 122, 255, 0.08), transparent 55%), #000000;
}

.dashboard-body .admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid #1f1f1f;
    background: rgba(12, 12, 12, 0.85);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.dashboard-body .admin-brand {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d4d4d8;
}

.dashboard-body .btn-logout {
    padding: 0.65rem 1.4rem;
}

.dashboard-body .admin-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-body .admin-hero {
    position: relative;
    background: rgba(17, 17, 17, 0.95);
    border: 1px solid rgba(48, 48, 48, 0.8);
    border-radius: 24px;
    padding: 2.5rem 2.75rem;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.dashboard-body .admin-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007aff, #34c759, #ff9500, #007aff);
    background-size: 200% 100%;
    animation: shimmer 4s ease-in-out infinite;
}

.dashboard-body .hero-greeting {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.35rem;
    line-height: 1.1;
}

.dashboard-body .hero-time {
    color: #f5f5f5;
}

.dashboard-body .hero-name {
    background: linear-gradient(135deg, #007aff, #34c759, #ff9500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient 6s ease infinite;
}

.dashboard-body .hero-subtitle {
    margin: 0;
    color: #9ca3af;
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
}

.dashboard-body .admin-content-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .dashboard-body .admin-content-grid {
        grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
        align-items: start;
    }
}

.dashboard-body .admin-card {
    background: rgba(17, 17, 17, 0.95);
    border: 1px solid rgba(48, 48, 48, 0.75);
    border-radius: 22px;
    padding: 2rem 2.25rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-body .admin-card-header h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2.8vw, 1.75rem);
}

.dashboard-body .admin-card-header p {
    margin: 0.4rem 0 0;
    color: #a3a3a3;
    font-size: 0.95rem;
}

.dashboard-body .admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.dashboard-body .form-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .dashboard-body .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.dashboard-body .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-body .form-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a1a1aa;
}

.dashboard-body .form-input {
    padding: 0.9rem 1.1rem;
    border-radius: 14px;
    border: 1px solid #2f2f2f;
    background: #141414;
    color: #ffffff;
    transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dashboard-body .form-input:focus {
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
    transform: translateY(-1px);
}

.dashboard-body .btn {
    border-radius: 14px;
    padding: 0.9rem 1.4rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-body .btn-primary {
    background: linear-gradient(135deg, #007aff, #0056d6);
    border: none;
}

.dashboard-body .btn-primary:hover {
    box-shadow: 0 12px 30px rgba(0, 122, 255, 0.35);
    transform: translateY(-2px);
}

.dashboard-body .btn-secondary {
    background: rgba(36, 36, 36, 0.9);
    border: 1px solid rgba(58, 58, 60, 0.7);
    color: #f4f4f5;
}

.dashboard-body .btn-secondary:hover {
    background: rgba(58, 58, 60, 0.9);
    transform: translateY(-2px);
}

.dashboard-body .btn-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    border: none;
}

.dashboard-body .btn-danger:hover {
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.35);
    transform: translateY(-2px);
}

.dashboard-body .btn-sm {
    padding: 0.55rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.dashboard-body .table-actions {
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid rgba(63, 63, 70, 0.6);
    border-radius: 16px;
    padding: 1.1rem 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-body .table-action-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dashboard-body .copy-status {
    order: 3;
    margin: 0;
}

.dashboard-body .admin-table-card .table-responsive {
    border-radius: 18px;
    border: 1px solid rgba(48, 48, 48, 0.6);
    overflow: hidden;
    background: rgba(12, 12, 12, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.dashboard-body .video-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.dashboard-body .video-table th,
.dashboard-body .video-table td {
    border-bottom: 1px solid rgba(39, 39, 42, 0.8);
}

.dashboard-body .video-table th {
    background: rgba(24, 24, 27, 0.75);
    color: #a1a1aa;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.dashboard-body .video-table td {
    font-size: 0.95rem;
}

.dashboard-body .table-footer {
    justify-content: flex-end;
}

.dashboard-body .empty-state {
    color: #9ca3af;
    text-align: center;
    margin: 2rem 0;
}

@media (max-width: 900px) {
    .dashboard-body .admin-topbar {
        padding: 1rem 1.25rem;
    }

    .dashboard-body .admin-shell {
        padding: 2rem 1.25rem 3rem;
    }
}

@media (max-width: 768px) {
    .dashboard-body .admin-hero {
        padding: 2rem;
    }

    .dashboard-body .admin-card {
        padding: 1.75rem;
    }

    .dashboard-body .table-actions {
        flex-direction: column;
    }

    .dashboard-body .table-action-buttons,
    .dashboard-body .table-actions .btn,
    .dashboard-body .table-actions .select-all {
        width: 100%;
    }

    .dashboard-body .table-action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-body .copy-status {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .dashboard-body .admin-shell {
        padding: 1.75rem 1rem 2.5rem;
        gap: 1.5rem;
    }

    .dashboard-body .admin-hero {
        padding: 1.75rem 1.5rem;
    }

    .dashboard-body .admin-card {
        padding: 1.5rem;
    }

    .dashboard-body .btn,
    .dashboard-body .table-actions .btn,
    .dashboard-body .link-actions .btn,
    .dashboard-body .link-actions .table-link {
        width: 100%;
    }

    .dashboard-body .link-actions {
        width: 100%;
    }

    .dashboard-body .table-responsive {
        border-radius: 16px;
    }
}

@keyframes shimmer {
    0%,
    100% {
        background-position: 200% 0;
    }

    50% {
        background-position: -200% 0;
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}
