/* ================================================================
   CHANNIFY — UNIFIED DARK THEME SYSTEM
   Single source of truth for all shared styles.
   Loaded in layouts/main.blade.php and layouts/main_lists.blade.php
   ================================================================ */

/* ── 1. ROOT VARIABLES ─────────────────────────────────────────── */
:root {
    /* Backgrounds — clean dark theme to complement logo red */
    --bg-primary: #0f0f14;      /* near-black with blue tint — cleaner than #181818 */
    --bg-secondary: #16161e;
    --bg-glass: rgba(255, 255, 255, 0.06);
    --bg-glass-hover: rgba(255, 255, 255, 0.10);
    --bg-card: #1c1c26;
    --bg-overlay: rgba(0, 0, 0, 0.6);

    /* Text — slightly warm whites for better readability */
    --text-primary: #f0f0f5;
    --text-secondary: rgba(240, 240, 245, 0.55);
    --text-muted: rgba(240, 240, 245, 0.30);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: blur(20px);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --glass-hover-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);

    /* Accent colors — extracted from channify.svg logo */
    --accent-red: #f20414;        /* bright red — primary brand accent */
    --accent-red-hover: #ff1a2b; /* brighter red — hover state */
    --accent-red-dark: #9e0515;  /* deep red — secondary accent */
    --accent-burgundy: #521d23;   /* dark burgundy — borders/dark accents */
    --accent-shadow: #2b0514;    /* near-black burgundy — deep shadows */
    --accent-info: #00d4ff;
    --accent-success: #00c853;
    --accent-warning: #ffc107;
    --accent-purple: #a78bfa;
    --accent-gradient: linear-gradient(135deg, var(--accent-red), var(--accent-burgundy));

    /* Cards */
    --card-bg: #1e1e1e;
    --card-border: #333;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --card-hover-shadow: rgba(0, 0, 0, 0.5);

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 18px;
    --radius-lg: 25px;
    --radius-xl: 30px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ── 2. BASE RESET ─────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    background-image: url('/img/channify6.ani.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 70px;
}

main { flex: 1; }

/* ── 3. SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-info), var(--accent-purple));
    border-radius: 10px;
}


/* ── 4. NAVBAR ────────────────────────────────────────────────── */
.navbar {
    background-color: rgba(15, 15, 20, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 2px solid var(--accent-red);
    transition: background-color var(--transition-base), box-shadow var(--transition-base);
}
.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(242, 4, 20, 0.4), 1px 1px 4px rgba(0, 0, 0, 0.8);
    transition: transform var(--transition-fast);
}
.navbar-brand:hover {
    transform: scale(1.03);
}
.nav-link {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--accent-red);
    border-radius: 2px;
    transition: transform var(--transition-base);
}
.nav-link:hover::after,
.nav-link:focus::after {
    transform: translateX(-50%) scaleX(1);
}
.nav-link:hover {
    color: var(--accent-red);
    text-shadow: 0 0 12px rgba(242, 4, 20, 0.5);
}
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: border-color var(--transition-fast);
}
.navbar-toggler:hover {
    border-color: var(--accent-red);
}


/* ── 5. FOOTER ─────────────────────────────────────────────────── */
.footer {
    background-color: #1f1f1f;
    color: #aaa;
    flex-shrink: 0;
}
.footer a {
    margin-left: 0.5rem;
    text-decoration: none;
    color: #ccc;
    transition: color var(--transition-fast);
}
.footer a:hover {
    text-decoration: underline;
    color: #fff;
}
#footer {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
#footer a {
    margin: 0 0.25rem;
    text-decoration: none;
    color: var(--accent-red);
}


/* ── 6. CARDS (shared video/channel cards) ───────────────────── */
.card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-slow),
                box-shadow var(--transition-slow),
                border-color var(--transition-fast),
                background var(--transition-fast);
    overflow: hidden;
}
.card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--glass-hover-shadow),
                0 0 0 1px var(--accent-red);
    border-color: var(--accent-red);
    background: rgba(30, 30, 30, 0.85);
}
.card-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.card-body .card-title a {
    color: #e8e8e8;
    transition: color var(--transition-fast);
}
.card-body .card-title a:hover {
    color: var(--accent-red);
}
.card-text a {
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition-fast);
}
.card-text a:hover {
    color: rgba(255, 255, 255, 0.8);
}


/* ── 7. VIDEO CARDS (flick/channel/thumb grids) ────────────────── */
.video-card,
.vcard,
.t-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #222;
    border: 1px solid var(--card-border);
    transition: transform var(--transition-fast),
                box-shadow var(--transition-fast),
                border-color var(--transition-fast);
    aspect-ratio: 16 / 9;
    display: block;
    text-decoration: none;
}
.video-card:hover,
.vcard:hover,
.t-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border-color: rgba(229, 9, 20, 0.4);
}
.video-card img,
.vcard img,
.t-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}
.video-card:hover img,
.vcard:hover img,
.t-card:hover img {
    transform: scale(1.06);
}
.video-card .overlay,
.vcard .overlay,
.t-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.2;
}
.video-card .overlay .title,
.vcard .overlay .title,
.t-card .info h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}
.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.vcard:hover .play-overlay,
.t-card:hover .play-overlay {
    opacity: 1;
}
.play-overlay .picon {
    width: 44px;
    height: 44px;
    background: rgba(229, 9, 20, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}


/* ── 8. CHANNEL HEADER CARDS ───────────────────────────────────── */
.channel-header-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.channel-header-body {
    padding: 1.5rem 1.5rem 1rem;
}
.channel-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem 0;
}
.channel-subtitle {
    font-size: 0.9rem;
    color: #999;
}
.channel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}
.channel-actions .btn-play {
    background: var(--accent-red);
    border: none;
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition-fast);
}
.channel-actions .btn-play:hover {
    background: var(--accent-red-hover);
}
.channel-actions .btn-outline {
    border: 1px solid #555;
    color: #ccc;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.channel-actions .btn-outline:hover {
    background: #333;
    color: #fff;
    border-color: #888;
}
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.75rem 1.5rem 1.25rem;
    border-top: 1px solid #2a2a2a;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #aaa;
    font-size: 0.85rem;
}
.stat-item strong {
    color: #fff;
}


/* ── 9. BUTTONS ───────────────────────────────────────────────── */
.btn {
    margin: 0 4px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 10px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    background: var(--bg-glass);
    color: var(--text-primary);
    box-shadow: var(--glass-shadow);
    cursor: pointer;
}
.btn:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-2px);
    box-shadow: var(--glass-hover-shadow);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
}
.btn:active {
    transform: translateY(0) scale(0.98);
}
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}
.btn-success {
    background: var(--bg-glass);
    border-color: rgba(0, 200, 83, 0.3);
    color: var(--accent-success);
}
.btn-success:hover {
    border-color: var(--accent-success);
    box-shadow: 0 0 20px rgba(0, 200, 83, 0.35), var(--glass-hover-shadow);
    color: var(--accent-success);
}
.btn-danger {
    background: var(--bg-glass);
    border-color: rgba(255, 71, 87, 0.3);
    color: var(--accent-danger);
}
.btn-danger:hover {
    border-color: var(--accent-danger);
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.35), var(--glass-hover-shadow);
    color: var(--accent-danger);
}
.btn-info {
    background: var(--bg-glass);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--accent-info);
}
.btn-info:hover {
    border-color: var(--accent-info);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.35), var(--glass-hover-shadow);
    color: var(--accent-info);
}
.btn-outline-light {
    border-color: #555;
    color: #fff;
}
.btn-outline-light:hover {
    background-color: #555;
    border-color: #777;
    color: #fff;
}
.btn-save {
    background: var(--accent-red);
    border: none;
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}
.btn-save:hover {
    background: var(--accent-red-hover);
}
.btn-del {
    background: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}
.btn-del:hover {
    background: #e74c3c;
    color: #fff;
}
.badge {
    border-radius: 20px;
    padding: 4px 10px;
    font-weight: 700;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.15) !important;
    color: var(--text-primary) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-left: 8px;
    transition: all var(--transition-fast);
}


/* ── 10. VIDEO THUMBNAIL ───────────────────────────────────────── */
.video-thumb {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.video-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
}
.video-thumb img {
    transition: transform var(--transition-slow);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.video-thumb:hover img {
    transform: scale(1.06);
}
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    font-size: 3rem;
    color: #fff;
    opacity: 0;
    z-index: 10;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
    transition: opacity var(--transition-fast), transform var(--transition-slow);
    filter: drop-shadow(0 0 8px var(--accent-red));
}
.video-thumb:hover .play-button-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}


/* ── 11. GRIDS ─────────────────────────────────────────────────── */
.video-grid,
.t-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    padding: 0;
}
@media (max-width: 991px) {
    .video-grid,
    .t-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .video-grid,
    .t-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .video-grid,
    .t-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}


/* ── 12. PRIME BADGE ───────────────────────────────────────────── */
.prime-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f7b731, #f39c12);
    color: #000;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}


/* ── 13. EMPTY STATE ───────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}
.empty-state .icon {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 0.5rem;
}


/* ── 14. PAGE HEADERS ──────────────────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.9) 0%, rgba(20, 20, 20, 0.95) 100%);
    padding: 3rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.page-title {
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}
.page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}
#mainBodySection h2 {
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #fff;
    position: relative;
    display: inline-block;
}
#mainBodySection h2::after {
    content: '';
    display: block;
    margin: 8px auto 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-red-dark));
    border-radius: 2px;
}


/* ── 15. SEARCH FORMS ──────────────────────────────────────────── */
#search-form {
    max-width: 560px;
    margin: 0 auto 2rem;
}
#search-form .input-group {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #1a1a24; /* opaque — prevents SVG ghosting */
}
#search-form input.form-control {
    background-color: transparent;
    border: none;
    color: var(--text-primary);
    box-shadow: none;
    transition: none;
    font-size: 1rem;
    padding: 0.85rem 1.25rem;
}
#search-form input.form-control::placeholder {
    color: var(--text-muted);
}
#search-form input.form-control:focus {
    background-color: transparent;
    box-shadow: none;
    outline: none;
}
#search-form .input-group-append {
    display: flex;
}
#search-form .btn {
    background: var(--accent-red);
    border: none;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.85rem 1.75rem;
    border-radius: 0 12px 12px 0;
    transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    box-shadow: 0 0 20px rgba(242, 4, 20, 0.4);
}
#search-form .btn:hover {
    background: var(--accent-red-hover);
    box-shadow: 0 0 30px rgba(242, 4, 20, 0.6);
    transform: none;
}
#search-form .btn:active {
    transform: none;
}


/* ── 16. FORMS ────────────────────────────────────────────────── */
.form-control {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}
.form-control::placeholder {
    color: var(--text-muted);
}
.form-control:focus {
    background-color: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(242, 4, 20, 0.25);
    border-color: var(--accent-red);
}
.dropdown-menu {
    background-color: #202020;
    border-color: #555;
}
.edit-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.edit-card-header {
    background: linear-gradient(135deg, #222 0%, #1a1a1a 100%);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 1.25rem;
}
.edit-card-header h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
}
.edit-body {
    padding: 1.25rem;
}
.edit-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #aaa;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.field-static {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    color: #fff;
    font-size: 0.95rem;
    min-height: 2.5rem;
    outline: none;
}
.field-static:focus {
    border-color: var(--accent-red);
}


/* ── 17. CHANNEL SECTIONS ─────────────────────────────────────── */
.channel-section {
    background: #1a1a1a;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.channel-header {
    background: linear-gradient(135deg, #222 0%, #1a1a1a 100%);
    border-bottom: 1px solid var(--card-border);
    padding: 0.75rem 1rem;
}
.channel-header h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.channel-header h5 a {
    color: #fff;
    text-decoration: none;
}
.channel-header h5 a:hover {
    color: var(--accent-red);
}
.error-chan {
    padding: 0.75rem 1rem;
    background: #1a1a1a;
    border: 1px dashed #444;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}


/* ── 18. T-CARD (trending cards) ──────────────────────────────── */
.t-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.t-card .twrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.t-card .twrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.t-card .twrap .play {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.t-card:hover .twrap .play {
    opacity: 1;
}
.t-card .twrap .play .picon {
    width: 50px;
    height: 50px;
    background: rgba(229, 9, 20, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
}
.t-card .info {
    padding: 0.75rem;
}
.t-card .info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.4rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.t-card .info p {
    font-size: 0.75rem;
    color: #999;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.t-card .info .stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.4rem;
}


/* ── 19. FLEX LAYOUT HELPERS ─────────────────────────────────── */
.flex-center {
    align-items: center;
    display: flex;
    justify-content: center;
}
.position-ref {
    position: relative;
}
.top-right {
    position: absolute;
    right: 10px;
    top: 18px;
}


/* ── 20. ANIMATIONS ────────────────────────────────────────────── */
.animate__fadeInUp {
    --animate-delay: 0ms;
}
.counter {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: bold;
    opacity: 1;
    pointer-events: none;
    animation: flash1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    z-index: 9999;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}
@keyframes flash {
    0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50%  { opacity: 0.8; transform: translate(-50%, -80%) scale(1.3); }
    100% { opacity: 0; transform: translate(-50%, -120%) scale(1.6); }
}


/* ── 21. CHANNEL TITLE (with underline accent) ─────────────────── */
.channel-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
}
.channel-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 600;
    font-size: 1.75rem;
}
.channel-title a:hover {
    color: var(--accent-red);
}
.channel-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-red);
    border-radius: 3px;
}
.channel-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.view-all-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--accent-red);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.view-all-link:hover {
    color: var(--accent-red-hover);
    text-decoration: underline;
}
.view-all-link i {
    margin-left: 5px;
    transition: transform var(--transition-fast);
}
.view-all-link:hover i {
    transform: translateX(3px);
}

/* ── 22. VIDEO INFO PANEL ─────────────────────────────────────── */
.video-info {
    padding: 1.25rem;
}
.video-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3em;
}
.video-title a {
    color: inherit;
    text-decoration: none;
}
.video-title a:hover {
    color: var(--accent-red);
}
.video-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ── 23. PAGINATION ───────────────────────────────────────────── */
.pagination .page-item .page-link {
    background-color: var(--card-bg);
    border-color: var(--card-border);
    color: var(--text-muted);
}
.pagination .page-item.active .page-link {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
}
.pagination .page-item:not(.active) .page-link:hover {
    background-color: rgba(229, 9, 20, 0.1);
    color: var(--accent-red);
}

/* ── 24. EMPTY STATE ──────────────────────────────────────────── */
.empty-state {
    padding: 4rem 0;
    text-align: center;
}
.empty-state-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.empty-state-title {
    font-weight: 600;
    margin-bottom: 1rem;
}
.empty-state-text {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ── 25. TRENDING/MOST-VIRAL GRID ─────────────────────────────── */
.mv-hdr {
    text-align: center;
    padding: 3rem 1rem 2rem;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 2rem;
}
.mv-hdr h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

/* ── 26. CREATE-CHANNEL SCREEN ───────────────────────────────── */
.screen {
    padding-top: 30px;
    margin: 0 auto;
    border-radius: 25px;
    background-color: rgba(254, 254, 254, 0.33);
}
.video__item {
    position: relative;
    margin-bottom: 20px;
}
.video__img {
    height: 165px;
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}
.video__stats span {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 6px;
    color: #fff;
}
.video__views {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e8003c;
}
.video__duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #8c8c8c;
}
.search {
    position: relative;
    width: 100%;
    margin-top: 20px;
}
.round {
    width: 100%;
    border-radius: 15px;
    border: 1px solid #000;
    padding: 10px 15px;
}
.corner {
    position: absolute;
    top: 0;
    right: 0;
    height: 40px;
    width: 40px;
    background: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

/* ── 27. RESPONSIVE HELPERS ────────────────────────────────────── */
@media (max-width: 768px) {
    .btn {
        margin: 5px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    h1 { font-size: 1.8rem; }
    #mainBodySection h2 { font-size: 1.4rem; }
    .page-header { padding: 2rem 0; margin-bottom: 2rem; }
    .channel-title { font-size: 1.3rem; }
    .channel-header-body { padding: 1rem; }
    .stats-row { padding: 0.5rem 1rem 1rem; }
}


/* ================================================
   cleanmainvideo.blade.php — merged glassmorphism
   ================================================ */

/* ================================================
           UNIFIED DARK THEME — CSS VARIABLE SYSTEM
           ================================================ */
        

        /* ================================================
           ENGAGEMENT BUTTONS — dark glass, colored glow
           ================================================ */
        .btn {
            margin: 0 8px;
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-md);
            padding: 12px 24px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            position: relative;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: var(--glass-blur);
            -webkit-backdrop-filter: var(--glass-blur);
            background: var(--bg-glass);
            color: var(--text-primary);
            box-shadow: var(--glass-shadow);
            cursor: pointer;
        }

        .btn:hover {
            background: var(--bg-glass-hover);
            transform: translateY(-3px) scale(1.02);
            box-shadow: var(--glass-hover-shadow);
            border-color: rgba(255, 255, 255, 0.25);
        }

        .btn:active {
            transform: translateY(0) scale(0.98);
        }

        /* Like — green glow on hover */
        .btn-success {
            background: var(--bg-glass);
            border-color: rgba(0, 200, 83, 0.3);
            color: var(--accent-success);
        }
        .btn-success:hover {
            border-color: var(--accent-success);
            box-shadow: 0 0 20px rgba(0, 200, 83, 0.35), var(--glass-hover-shadow);
            color: var(--accent-success);
        }

        /* Dislike — red glow on hover */
        .btn-danger {
            background: var(--bg-glass);
            border-color: rgba(255, 71, 87, 0.3);
            color: var(--accent-danger);
        }
        .btn-danger:hover {
            border-color: var(--accent-danger);
            box-shadow: 0 0 20px rgba(255, 71, 87, 0.35), var(--glass-hover-shadow);
            color: var(--accent-danger);
        }

        /* Skip/Share — cyan glow on hover */
        .btn-info {
            background: var(--bg-glass);
            border-color: rgba(0, 212, 255, 0.3);
            color: var(--accent-info);
        }
        .btn-info:hover {
            border-color: var(--accent-info);
            box-shadow: 0 0 20px rgba(0, 212, 255, 0.35), var(--glass-hover-shadow);
            color: var(--accent-info);
        }

        /* Emoji buttons — subtle glass */
        .btn-outline-secondary {
            background: var(--bg-glass);
            border-color: var(--glass-border);
            color: var(--text-primary);
        }
        .btn-outline-secondary:hover {
            background: var(--bg-glass-hover);
            border-color: rgba(255, 255, 255, 0.3);
            box-shadow: 0 0 16px rgba(255, 255, 255, 0.15), var(--glass-hover-shadow);
            color: var(--text-primary);
        }

        /* Tag buttons — cyan accent */
        .btn-outline-info {
            background: var(--bg-glass);
            border-color: rgba(0, 212, 255, 0.25);
            color: var(--accent-info);
        }
        .btn-outline-info:hover {
            background: var(--bg-glass-hover);
            border-color: var(--accent-info);
            box-shadow: 0 0 16px rgba(0, 212, 255, 0.3), var(--glass-hover-shadow);
            color: var(--accent-info);
        }

        /* Badge polish */
        .badge {
            border-radius: 20px;
            padding: 4px 10px;
            font-weight: 700;
            font-size: 0.75rem;
            background: rgba(255, 255, 255, 0.15) !important;
            color: var(--text-primary) !important;
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            margin-left: 8px;
            transition: all 0.3s ease;
        }

        .btn:hover .badge {
            background: rgba(255, 255, 255, 0.25) !important;
            transform: scale(1.1);
        }

        /* ================================================
           VIDEO METRICS — unified glassmorphism
           ================================================ */
        .video-metrics {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 20px;
            margin: 30px auto;
            padding: 25px;
            max-width: 900px;
            background: var(--bg-glass);
            backdrop-filter: var(--glass-blur);
            -webkit-backdrop-filter: var(--glass-blur);
            border-radius: var(--radius-lg);
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-shadow);
        }

        .video-metric {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 18px 12px;
            border-radius: var(--radius-md);
            background: var(--bg-glass);
            border: 1px solid var(--glass-border);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
            transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                        box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                        border-color 0.3s ease,
                        background 0.3s ease;
            cursor: pointer;
        }

        .video-metric:hover {
            transform: translateY(-5px) scale(1.03);
            background: var(--bg-glass-hover);
            border-color: rgba(255, 255, 255, 0.25);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
                        0 0 0 1px rgba(255, 255, 255, 0.1);
        }

        .video-metric-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 46px;
            height: 46px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            font-size: 1.4rem;
            margin-bottom: 12px;
            transition: transform 0.3s ease, background 0.3s ease;
        }

        .video-metric:hover .video-metric-icon {
            transform: scale(1.1);
            background: rgba(255, 255, 255, 0.18);
        }

        .video-metric-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: var(--text-secondary);
            margin-bottom: 4px;
        }

        .video-metric-value {
            margin-top: 6px;
            font-size: 1.6rem;
            font-weight: 700;
            color: var(--text-primary);
            text-align: center;
        }

        .video-metric-value--small {
            font-size: 1.1rem;
            line-height: 1.4;
        }

        /* ================================================
           ENGAGEMENT SECTION CONTAINER
           ================================================ */
        #engagement-buttons {
            background: var(--bg-glass);
            backdrop-filter: var(--glass-blur);
            -webkit-backdrop-filter: var(--glass-blur);
            border-radius: var(--radius-lg);
            padding: 25px;
            margin: 30px auto;
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-shadow);
            max-width: 600px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 12px;
        }

        #emoji-buttons, #tag-buttons {
            background: var(--bg-glass);
            backdrop-filter: var(--glass-blur);
            -webkit-backdrop-filter: var(--glass-blur);
            border-radius: var(--radius-lg);
            padding: 20px;
            margin: 20px auto;
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-shadow);
            max-width: 700px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
        }

        /* ================================================
           PLAYER CONTAINER
           ================================================ */
        #player {
            width: 100%;
            min-height: 480px;
            border-radius: var(--radius-xl);
            overflow: hidden;
            box-shadow: var(--glass-shadow);
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
            position: relative;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid var(--glass-border);
        }

        #player[data-loading="true"] {
            opacity: 0.6;
        }

        /* ================================================
           TYPOGRAPHY
           ================================================ */
        h1 {
            background: linear-gradient(135deg, #fff 0%, #a8c8ff 50%, #fff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: 800;
            margin-bottom: 30px;
            font-size: 2.2rem;
            line-height: 1.2;
            filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
        }

        h3 {
            background: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        /* ================================================
           DESCRIPTION + DISQUS
           ================================================ */
        #video-description, #disqus_thread {
            background: var(--bg-glass);
            backdrop-filter: var(--glass-blur);
            -webkit-backdrop-filter: var(--glass-blur);
            border-radius: var(--radius-lg);
            padding: 30px;
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-shadow);
            color: rgba(255, 255, 255, 0.9);
            font-size: 1.1rem;
            line-height: 1.8;
            margin: 30px 0;
        }

        /* ================================================
           CAROUSEL
           ================================================ */
        .carousel {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 20px;
            padding: 30px;
            margin: 30px 0;
            background: var(--bg-glass);
            backdrop-filter: var(--glass-blur);
            -webkit-backdrop-filter: var(--glass-blur);
            border-radius: var(--radius-lg);
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-shadow);
            overflow-x: auto;
        }

        .carousel-cell {
            width: 140px;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }

        .carousel-cell:hover {
            transform: translateY(-10px) scale(1.05);
        }

        .carousel-cell a {
            display: block;
            position: relative;
            overflow: hidden;
            border-radius: var(--radius-md);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
            border: 1px solid var(--glass-border);
        }

        .carousel-cell a::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(167, 139, 250, 0.3));
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 1;
        }

        .carousel-cell a:hover::before {
            opacity: 1;
        }

        .carousel-cell img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: var(--radius-md);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .carousel-cell:hover img {
            transform: scale(1.1);
        }

        /* ================================================
           SCROLLBAR + UTILITIES
           ================================================ */
        .carousel::-webkit-scrollbar {
            height: 8px;
        }

        .carousel::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
        }

        .carousel::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, var(--accent-info), var(--accent-purple));
            border-radius: 10px;
        }

        .btn[disabled] {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none !important;
        }

        /* ================================================
           COUNTER ANIMATION
           ================================================ */
        .counter {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 3rem;
            font-weight: bold;
            opacity: 1;
            pointer-events: none;
            animation: flash 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
            z-index: 9999;
            text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
        }

        @keyframes flash {
            0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
            50%  { opacity: 0.8; transform: translate(-50%, -80%) scale(1.3); }
            100% { opacity: 0; transform: translate(-50%, -120%) scale(1.6); }
        }

        /* ================================================
           RESPONSIVE
           ================================================ */
        @media (max-width: 768px) {
            .btn {
                margin: 5px;
                padding: 10px 20px;
                font-size: 0.9rem;
            }

            .carousel {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
                gap: 15px;
                padding: 20px;
            }

            h1 {
                font-size: 1.8rem;
            }

            #engagement-buttons, #emoji-buttons, #tag-buttons {
                margin: 15px;
                padding: 20px 15px;
            }

            .video-metrics {
                grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
                padding: 20px 15px;
                gap: 15px;
            }

            .video-metric {
                padding: 15px 10px;
            }

            .video-metric-value {
                font-size: 1.3rem;
            }

            .video-metric-value--small {
                font-size: 1rem;
            }
        }
/* Enhanced Video Player Container */
#player {
width: 100%;
min-height: 480px;
border-radius: 20px;
overflow: hidden;
box-shadow: var(--card-shadow);
background: linear-gradient(45deg, #1a1a2e, #16213e, #0f3460);
position: relative;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#player:before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('https://3.bp.blogspot.com/-URPpu3Vkgzo/VPz4FOI4IiI/AAAAAAAANeM/IFRD-leSuy4/s1600/11-05%2B~%2BGIF%2B~%2BPlease%2BWait.gif') center center no-repeat;
background-size: 100px 100px;
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
}
#player[data-loading="true"]:before {
opacity: 1;
}
/* Modern Glass Morphism Buttons */
.btn {
margin: 0 8px;
border: none;
border-radius: 15px;
padding: 12px 24px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
position: relative;
overflow: hidden;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
backdrop-filter: blur(10px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.btn:before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.5s;
}
.btn:hover:before {
left: 100%;
}
.btn:hover {
transform: translateY(-2px);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}
.btn:active {
transform: translateY(0);
}
/* Specific Button Styles */
.btn-success {
background: var(--success-gradient);
color: white;
border: 2px solid rgba(255, 255, 255, 0.2);
}
.btn-danger {
background: var(--danger-gradient);
color: white;
border: 2px solid rgba(255, 255, 255, 0.2);
}
.btn-info {
background: var(--info-gradient);
color: white;
border: 2px solid rgba(255, 255, 255, 0.2);
}
.btn-outline-secondary {
background: var(--glass-bg);
color: white;
border: 2px solid var(--glass-border);
backdrop-filter: blur(10px);
}
.btn-outline-info {
background: var(--glass-bg);
color: #00d4ff;
border: 2px solid rgba(0, 212, 255, 0.3);
backdrop-filter: blur(10px);
}
/* Enhanced Badges */
.badge {
border-radius: 20px;
padding: 6px 12px;
font-weight: 700;
font-size: 0.75rem;
background: rgba(255, 255, 255, 0.9) !important;
color: #333 !important;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
margin-left: 8px;
transition: all 0.3s ease;
}
.btn:hover .badge {
transform: scale(1.1);
}
/* Enhanced Carousel */
.carousel {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 20px;
padding: 30px 0;
margin: 30px 0;
background: var(--glass-bg);
backdrop-filter: blur(20px);
border-radius: 25px;
border: 1px solid var(--glass-border);
box-shadow: var(--card-shadow);
overflow-x: auto;
}
.carousel-cell {
width: 140px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
}
.carousel-cell:hover {
transform: translateY(-10px) scale(1.05);
}
.carousel-cell a {
display: block;
position: relative;
overflow: hidden;
border-radius: 15px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
}
.carousel-cell a:before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
opacity: 0;
transition: opacity 0.3s ease;
z-index: 1;
}
.carousel-cell a:hover:before {
opacity: 1;
}
.carousel-cell img {
width: 100%;
height: auto;
display: block;
border-radius: 15px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-cell:hover img {
transform: scale(1.1);
}
/* Enhanced Engagement Section */
#engagement-buttons {
background: var(--glass-bg);
backdrop-filter: blur(20px);
border-radius: 25px;
padding: 25px;
margin: 30px auto;
border: 1px solid var(--glass-border);
box-shadow: var(--card-shadow);
max-width: 600px;
}
/* Enhanced Emoji and Tag Sections */
#emoji-buttons, #tag-buttons {
background: var(--glass-bg);
backdrop-filter: blur(20px);
border-radius: 20px;
padding: 20px;
margin: 20px auto;
border: 1px solid var(--glass-border);
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
max-width: 700px;
}
/* Video Metrics Grid */
.video-metrics {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 20px;
margin: 30px auto;
padding: 25px;
max-width: 900px;
background: var(--glass-bg);
backdrop-filter: blur(20px);
border-radius: 25px;
border: 1px solid var(--glass-border);
box-shadow: var(--card-shadow);
}
.video-metric {
display: flex;
flex-direction: column;
align-items: center;
padding: 18px 12px;
border-radius: 18px;
background: rgba(15, 52, 96, 0.5);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-metric:hover {
transform: translateY(-4px);
box-shadow: var(--card-hover-shadow);
}
.video-metric-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 46px;
height: 46px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.15);
font-size: 1.4rem;
margin-bottom: 12px;
}
.video-metric-label {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 1.5px;
color: rgba(255, 255, 255, 0.7);
}
.video-metric-value {
margin-top: 6px;
font-size: 1.6rem;
font-weight: 700;
color: #fff;
text-align: center;
}
.video-metric-value--small {
font-size: 1.1rem;
line-height: 1.4;
}
/* Enhanced Title Styling */
h1 {
background: var(--primary-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
font-weight: 800;
margin-bottom: 30px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
font-size: 2.2rem;
line-height: 1.2;
}
h3 {
background: var(--accent-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 2px;
}
/* Enhanced Description Styling */
#video-description {
background: var(--glass-bg);
backdrop-filter: blur(20px);
border-radius: 20px;
padding: 30px;
border: 1px solid var(--glass-border);
box-shadow: var(--card-shadow);
color: rgba(255, 255, 255, 0.9);
font-size: 1.1rem;
line-height: 1.8;
margin: 30px 0;
}
/* Enhanced Counter Animation */
.counter {
position: absolute;
top: -10px;
left: 50%;
transform: translateX(-50%);
font-size: 2rem;
font-weight: bold;
opacity: 1;
pointer-events: none;
animation: flash 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
z-index: 1000;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
@keyframes flash {
0% {
opacity: 1;
transform: translateX(-50%) translateY(0) scale(1);
}
50% {
opacity: 0.8;
transform: translateX(-50%) translateY(-30px) scale(1.2);
}
100% {
opacity: 0;
transform: translateX(-50%) translateY(-60px) scale(1.5);
}
}
/* Responsive Improvements */
@media (max-width: 768px) {
.btn {
margin: 5px;
padding: 10px 20px;
font-size: 0.9rem;
}
.carousel {
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 15px;
padding: 20px;
}
h1 {
font-size: 1.8rem;
}
#engagement-buttons, #emoji-buttons, #tag-buttons {
margin: 15px;
padding: 20px 15px;
}
.video-metrics {
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
padding: 20px 15px;
gap: 15px;
}
.video-metric {
padding: 15px 10px;
}
.video-metric-value {
font-size: 1.3rem;
}
.video-metric-value--small {
font-size: 1rem;
}
}
/* Loading State Enhancement */
.btn[disabled] {
opacity: 0.6;
cursor: not-allowed;
transform: none !important;
}

/* ── 28. STAT ICON COLORS (channel stats row) ─────────────────── */
.stat-icon-curation { color: #f39c12; }
.stat-icon-like    { color: #4caf50; }
.stat-icon-dislike { color: #f44336; }
.stat-icon-emoji   { color: #ffc107; }
.stat-icon-tags    { color: #2196f3; }

/* ── 29. SECTION HEADINGS ──────────────────────────────────────── */
.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 1.5rem;
}
.section-heading i { color: var(--accent-red); margin-right: 0.5rem; }

/* ── 30. EMPTY STATE HELPERS ───────────────────────────────────── */
.empty-icon {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 0.75rem;
    display: block;
}
.empty-text { color: #666; }

/* ── 31. PAGE HEADING (mychannels, etc.) ──────────────────────── */
.page-heading {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #fff;
}
.page-heading--sm {
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    margin: 1.5rem auto;
    opacity: 0.7;
    color: #fff;
}

/* ── 32. FOOTER ACCENT LINKS ───────────────────────────────────── */
#footer {
    background: rgba(18, 18, 18, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-link-accent {
    color: var(--accent-red) !important;
    text-decoration: none;
}
.footer-link-accent:hover {
    text-decoration: underline;
}

/* ── 33. VIRAL CHANNELS GRID ──────────────────────────────────── */
.grid {
    display: block;
    margin: 0 auto;
    width: 95%;
    padding-left: 0;
    font-size: 0;
    text-align: center;
}
.grid figure {
    margin: 0.1em;
    width: 320px;
    height: 280px;
    background: #3085a3;
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.grid figure img {
    position: relative;
    opacity: 0.8;
}
.grid figure figcaption {
    color: #fff;
    font-size: 1.15em;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.grid figure figcaption::before,
.grid figure figcaption::after {
    pointer-events: none;
}
.grid figure figcaption,
.grid figure figcaption > a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.grid figure figcaption > a {
    z-index: 1000;
    text-indent: 200%;
    white-space: nowrap;
    font-size: 0;
    opacity: 0;
}
.grid figure h2 {
    word-spacing: -0.15em;
    font-weight: 300;
    margin: 1em;
}
.grid figure h2 span { font-weight: 800; }

/* Steve hover effect */
figure.effect-steve {
    z-index: auto;
    background: #000;
}
figure.effect-steve:before {
    box-shadow: 0 3px 30px rgba(0, 0, 0, 0.8);
    opacity: 0;
}
figure.effect-steve figcaption { z-index: 1; }
figure.effect-steve img {
    opacity: 1;
    -webkit-transition: -webkit-transform 0.35s;
    transition: transform 0.35s;
    -webkit-transform: perspective(1000px) translate3d(0, 0, 0);
    transform: perspective(1000px) translate3d(0, 0, 0);
}
figure.effect-steve h2,
figure.effect-steve p {
    background: #f1f1f1;
    color: #2d434e;
}
figure.effect-steve h2 {
    position: absolute;
    padding: 0.25em;
    bottom: 10px;
    width: 100%;
}
figure.effect-steve p {
    margin-top: 1em;
    padding: 0.5em;
    font-weight: 800;
    opacity: 0;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
}
@media (max-width: 1260px) {
    .grid figure img { height: 270px; }
}

/* ── 34. MODAL GALLERY (swipe gallery) ────────────────────────── */
.container-general {
    padding: 15px 0;
    margin: 0 auto;
    width: 800px;
}
.container-general .gallery-wrap {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 22vh;
}
.container-general .gallery-wrap .item {
    flex: 1;
    height: 100%;
    background-position: center;
    background-size: cover;
    transition: all 0.8s ease;
}
.container-general .gallery-wrap .item:hover {
    flex: 7;
}
.gallery-wrap .item:hover {
    transform: translate3d(0, 0, 100px);
    box-shadow: 0px 14px 80px rgba(34, 35, 58, 0.2);
    filter: saturate(2) contrast(120%);
}

/* Swiper container */
.swiper-container {
    width: 100%;
    height: 90%;
}
.swiper-slide {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Inspire card */
.inspire {
    border: 1px solid rgba(22, 76, 167, 0.6);
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    margin: 10px;
    padding: 10px;
}
.inspire:after {
    background: #38ef7d;
    content: "";
    height: 155px;
    left: -75px;
    opacity: 0.4;
    position: absolute;
    top: -50px;
    transform: rotate(35deg);
    transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
    width: 50px;
    z-index: -10;
}
.inspire:hover:after {
    left: 120%;
    transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
}

/* Rotate keyframe for wrap-effect-3 */
@keyframes rotate {
    0%   { transform: rotate(0deg) translate3d(0, 0, 0); }
    25%  { transform: rotate(10deg) translate3d(0, 0, 0); }
    50%  { transform: rotate(-10deg) translate3d(0, 0, 0); }
    75%  { transform: rotate(5deg) translate3d(0, 0, 0); }
    100% { transform: rotate(0deg) translate3d(0, 0, 0); }
}

/* ── 35. WELCOME / TAGLINE ─────────────────────────────────────── */
.tagline {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0.75rem auto 2rem;
    line-height: 1.5;
    text-align: center;
}

/* ── 36. ADD-TO-CHANNEL SCREEN ────────────────────────────────── */
.icon {
    object-fit: contain;
    height: 25px;
    opacity: 0.5;
    filter: grayscale(100%);
    cursor: pointer;
    transition: 0.4s ease;
}
.icon:hover {
    filter: grayscale(0%);
    opacity: 1;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 60px;
}
.header__logo {
    display: flex;
    justify-content: center;
    align-items: center;
}
.header__icon {
    height: 25px;
    object-fit: cover;
    margin-right: 5px;
}
.header__title {
    font-size: 18px;
}
.categories {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 60px;
}
.categories__link {
    position: relative;
    font-size: 10px;
    padding: 6px 16px;
    border-radius: 16px;
    border: 1px solid #e8003c;
    color: #e8003c;
    cursor: pointer;
    overflow: hidden;
}
.categories__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #e8003c;
    transition: 0.4s ease;
}
.categories__link:hover { color: #fff; }
.categories__link:hover::before { left: 0%; }
.categories__text { position: relative; z-index: 10; }
.video__photo {
    object-fit: cover;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    margin-right: 5px;
    cursor: pointer;
}
.video__title { font-size: 12px; }
.video__channel {
    font-size: 9px;
    line-height: 1.8;
    opacity: 0.9;
}
.menu { width: 100%; background-color: #fff; }

/* ── 37. TRENDING QNOTICE ──────────────────────────────────────── */
.qnotice {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    color: #ccc;
    max-width: 720px;
    text-align: center;
    margin: 1rem auto;
}
.qnotice strong { display: block; color: #f0c040; margin-bottom: 0.4rem; }
.qnotice .sec { display: block; margin-top: 0.5rem; font-size: 0.85rem; opacity: 0.75; }
.stale-notice {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
}

/* ── 38. WELCOME HERO OVERLAY ─────────────────────────────────── */
#fullHeightSection {
    position: relative;
    min-height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.65);
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
#fullHeightSection::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
    pointer-events: none;
}
#fullHeightSection > * { position: relative; z-index: 2; }
#fullHeightSection h1,
#fullHeightSection .display-4 {
    color: #fff;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.5px;
    -webkit-text-fill-color: #fff; /* override global h1's transparent */
    background: none; /* override global h1's gradient bg */
    text-shadow:
        0 0 30px rgba(242, 4, 20, 0.5),
        0 0 80px rgba(242, 4, 20, 0.2),
        0 4px 24px rgba(0,0,0,0.9);
    line-height: 1.2;
}

/* ── 39. WELCOME SEARCH BAR ───────────────────────────────────── */
.search-bar { max-width: 600px; }

/* ── 40. ADMIN ELOG FILTERS ───────────────────────────────────── */
.elog-filters label { font-weight: 600; }
.elog-filters .form-text { font-size: 0.75rem; }
.elog-level-badge { text-transform: uppercase; }
.elog-table pre { white-space: pre-wrap; word-break: break-all; }

/* ── 41. ADMIN LAYOUT (layouts/app.blade.php) ───────────────────── */
.navbar-brand img {
    max-height: 40px;
    filter: drop-shadow(0 0 6px rgba(242, 4, 20, 0.5));
}
main.flex-fill { min-height: calc(100vh - 180px); }
/* Disqus Container Enhancement */
#disqus_thread {
background: var(--glass-bg);
backdrop-filter: blur(20px);
border-radius: 20px;
padding: 30px;
border: 1px solid var(--glass-border);
box-shadow: var(--card-shadow);
margin: 30px 0;
}
/* Container Enhancements */
.container-fluid {
position: relative;
}
/* Scrollbar Styling */
.carousel::-webkit-scrollbar {
height: 8px;
}
.carousel::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
}
.carousel::-webkit-scrollbar-thumb {
background: var(--primary-gradient);
border-radius: 10px;
}
.carousel::-webkit-scrollbar-thumb:hover {
background: var(--accent-gradient);
}
</style>
@endsection
