:root {
    --bg-base: #141414;
    --bg-surface: #181818;
    --bg-card: #1f1f1f;
    --primary: #E50914;
    --primary-gradient: linear-gradient(135deg, #E50914 0%, #b81d24 100%);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

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

/* =========================================================
   NAVBAR
   ========================================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5%;
    background: rgba(5, 5, 5, 0.88);
    backdrop-filter: blur(16px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo .brand-text {
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffffff 35%, #ff4b2b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo .logo-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(229, 9, 20, 0.25);
    color: #ff4d4d;
    border: 1px solid rgba(229, 9, 20, 0.45);
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.2);
}

/* Navbar Navigation Tabs */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}

.nav-item {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 18px;
    border-radius: 22px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    border: 1px solid transparent;
}

.nav-item i {
    font-size: 14px;
    opacity: 0.85;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, color 0.25s ease;
}

.nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.nav-item:hover i {
    opacity: 1;
    transform: scale(1.15);
    color: #ffffff;
}

.nav-item.active {
    color: #ffffff;
    background: linear-gradient(135deg, #e50914 0%, #b80610 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 18px rgba(229, 9, 20, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.nav-item.active i {
    opacity: 1;
    transform: scale(1.08);
    color: #ffffff;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
}

.nav-right-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    min-width: 0;
}

/* Navbar Sticky Search Bar Container */
.nav-search-container {
    position: relative;
    max-width: 280px;
    width: 100%;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-search-container.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.exit-app-btn {
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.4);
    color: #ff4d4d;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 0;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    outline: none;
    flex-shrink: 0;
}

.exit-app-btn:hover {
    background: var(--primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.5);
    transform: scale(1.1);
}

.nav-search-container input {
    width: 100%;
    padding: 8px 40px 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.nav-search-container input:focus {
    border-color: var(--primary);
    background: rgba(18, 18, 18, 0.98);
    box-shadow: 0 0 18px rgba(229, 9, 20, 0.3);
}

.nav-search-container button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
    padding: 155px 5% 55px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(9, 9, 11, 0.45) 0%, rgba(9, 9, 11, 0.68) 55%, var(--bg-base) 100%),
        url('/static/hero-bg.jpg') center center/cover no-repeat;
    position: relative;
    z-index: 100;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero p {
    color: #d4d4d8;
    font-size: 19px;
    margin-bottom: 35px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.search-container {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    position: relative;
    z-index: 101;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 50px;
    transform: scale(1);
    transition: transform 0.3s;
}

.search-container:focus-within {
    transform: scale(1.02);
}

.search-container input {
    width: 100%;
    padding: 18px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(18, 18, 18, 0.75);
    backdrop-filter: blur(12px);
    color: white;
    font-size: 18px;
    outline: none;
    transition: all 0.3s ease;
}

.search-container input:focus {
    border-color: var(--primary);
    background: rgba(18, 18, 18, 0.95);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.2);
}

.search-container button {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    padding: 0 32px;
    border-radius: 40px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

/* =========================================================
   SEARCH SUGGESTIONS DROPDOWN
   ========================================================= */
.suggestions-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(18, 18, 22, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    max-height: 380px;
    overflow-y: auto;
    text-align: left;
}

.suggestions-dropdown::-webkit-scrollbar {
    width: 6px;
}

.suggestions-dropdown::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 10px;
}

.suggestion-item {
    padding: 14px 24px;
    color: #e4e4e7;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: rgba(229, 9, 20, 0.2);
    color: #ffffff;
    padding-left: 28px;
}

.suggestion-item .icon {
    color: #60a5fa;
    font-size: 14px;
    flex-shrink: 0;
}

/* =========================================================
   CONTAINER & LAYOUT
   ========================================================= */
.container {
    padding: 0 5% 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* =========================================================
   CATALOG FILTER SECTION
   ========================================================= */
.catalog-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(24, 24, 27, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e4e4e7;
    padding: 9px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    user-select: none;
}

.filter-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-1px);
}

.filter-toggle-btn.open {
    background: rgba(229, 9, 20, 0.15);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.3);
}

.filter-toggle-btn .toggle-arrow {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.28s ease, color 0.28s ease;
}

.filter-toggle-btn.open .toggle-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.filter-count-badge {
    background: var(--primary-gradient);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

.filter-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    display: none;
    animation: filterSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes filterSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
    gap: 15px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-label {
    width: 85px;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    padding-top: 4px;
}

.filter-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    flex: 1;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d4d4d8;
    padding: 5px 14px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.filter-pill.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.35);
}

/* Category Header with More > Button */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.category-header .section-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.more-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #60a5fa;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    outline: none;
}

.more-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    transform: translateX(3px);
}

.back-btn {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    outline: none;
}

.back-btn:hover {
    background: var(--bg-surface);
    border-color: var(--primary);
    color: #60a5fa;
}

/* Category Block */
.category-block {
    margin-bottom: 45px;
    content-visibility: auto;
    contain-intrinsic-size: 1px 380px;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
}

/* =========================================================
   CONTINUE WATCHING ROW (Strictly 1 Line Horizontal Scroll)
   ========================================================= */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
    padding-bottom: 10px;
}

.history-header .section-title {
    margin-bottom: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.clear-history-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.clear-history-btn:hover {
    background: rgba(229, 9, 20, 0.25);
    border-color: rgba(229, 9, 20, 0.5);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.3);
}

.history-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 16px !important;
    padding: 4px 4px 14px 4px !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(229, 9, 20, 0.5) transparent !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
}

.history-row::-webkit-scrollbar {
    height: 5px !important;
}

.history-row::-webkit-scrollbar-thumb {
    background: rgba(229, 9, 20, 0.5) !important;
    border-radius: 4px !important;
}

.history-row .card {
    flex: 0 0 170px !important;
    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
}

@media (max-width: 768px) {
    .history-row .card {
        flex: 0 0 140px !important;
        width: 140px !important;
        min-width: 140px !important;
        max-width: 140px !important;
    }
}

/* =========================================================
   MOVIE CARDS
   ========================================================= */
.card {
    background: var(--bg-surface);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), border-color 0.25s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.04);
    will-change: transform;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(229, 9, 20, 0.5);
    z-index: 2;
}

.poster {
    width: 100%;
    aspect-ratio: 2/3;
    position: relative;
    overflow: hidden;
    background: #161618;
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    will-change: transform;
    background-color: #161618;
}

.card:hover .poster img {
    transform: scale(1.06);
}

.ep-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.75);
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #60a5fa;
    z-index: 3;
}

.soon-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(234, 179, 8, 0.85);
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    color: #000;
    z-index: 3;
    text-transform: uppercase;
}

.year-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(34, 197, 94, 0.88);
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #000;
    z-index: 3;
}

.progress-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.card:hover .overlay {
    opacity: 1;
}

.play-btn {
    width: 54px;
    height: 54px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.85);
    transition: transform 0.3s ease;
}

.card:hover .play-btn {
    transform: scale(1);
}

.play-btn::after {
    content: '▶';
    color: white;
    font-size: 20px;
    margin-left: 3px;
}

.info {
    padding: 14px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    z-index: 1;
}

.title {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.rating {
    font-size: 13px;
    color: #fbbf24;
    font-weight: 800;
    margin-top: auto;
}

/* =========================================================
   BUTTONS & LOADERS
   ========================================================= */
.load-more-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 38px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 40px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    outline: none;
}

.load-more-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.5);
}

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

.loader {
    display: none;
    text-align: center;
    margin: 50px 0;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

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

/* =========================================================
   VIDEO PLAYER STYLING (Preserved & Styled)
   ========================================================= */
/* =========================================================
   VIDEO PLAYER STYLING & WATCH PAGE 2-COLUMN LAYOUT
   ========================================================= */
#playerContainer {
    margin: 75px auto 40px;
    max-width: 1800px;
    width: 96%;
}

.player-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.back-pill-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 9px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.25s ease;
    outline: none;
}

.back-pill-btn:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    transform: translateX(-3px);
}

.watch-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

.watch-main {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

#videoWrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    border: 1px solid var(--border);
    position: relative;
}

.player-loading-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: radial-gradient(circle at center, rgba(30, 30, 45, 0.8) 0%, rgba(10, 10, 14, 0.98) 100%);
    color: var(--text-muted);
    z-index: 5;
}

.player-loading-placeholder .pulse-spinner {
    width: 46px;
    height: 46px;
    border: 3px solid rgba(229, 9, 20, 0.2);
    border-top-color: #e50914;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.4);
}

.player-loading-placeholder .player-loading-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    max-width: 80%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-loading-placeholder span {
    font-size: 13px;
    font-weight: 500;
    color: #a1a1aa;
    letter-spacing: 0.3px;
}

.watch-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.meta-info {
    background: var(--bg-surface);
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.meta-info h2 {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.meta-info #pMeta {
    color: #60a5fa;
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 12px;
}

.meta-info #pDesc {
    color: var(--text-muted);
    line-height: 1.4;
    font-size: 12px;
    max-height: 75px;
    overflow-y: auto;
    scrollbar-width: thin;
    margin: 0;
}

.meta-info #pDesc:empty {
    display: none;
}

.controls-area {
    margin-top: 0;
    padding: 14px 18px;
    background: var(--bg-surface);
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.control-group {
    margin-bottom: 14px;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.control-header .control-label {
    margin-bottom: 0;
}

.season-nav-arrows {
    display: flex;
    gap: 5px;
}

.season-arrow-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e4e4e7;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.season-arrow-btn:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
    transform: scale(1.08);
}

.control-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 2px;
}

/* Seasons List (Single-row horizontal scrollable pills with hidden scrollbar) */
#grpSeasons.btn-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 2px 0 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

#grpSeasons.btn-row::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

#grpSeasons .ctrl-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Episodes Grid (Scrollable inside box, max-height 380px) */
#grpEpisodes.btn-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255, 255, 255, 0.05);
}

#grpEpisodes.btn-row::-webkit-scrollbar {
    width: 6px;
}

#grpEpisodes.btn-row::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

#grpEpisodes .ctrl-btn {
    width: 100%;
    justify-content: center;
    padding: 8px 6px;
    font-size: 13px;
    text-align: center;
}

/* Downloads List (Side by side pills) */
#grpDownloads.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

#grpDownloads .ctrl-btn {
    width: auto;
    flex: 0 0 auto;
    justify-content: center;
}

.ctrl-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.ctrl-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    color: white;
}

@media (max-width: 1024px) {
    .watch-layout {
        grid-template-columns: 1fr;
    }
    #playerContainer {
        margin-top: 80px;
        width: 100%;
        padding: 0 15px;
    }
    #grpEpisodes.btn-row {
        max-height: 260px;
    }
}

/* =========================================================
   DUB DROPDOWN MENU (Audio / Subtitle Selector)
   ========================================================= */
.dub-group {
    position: relative;
    z-index: 50;
    margin-bottom: 24px;
}

.dub-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.dub-dropdown-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(229, 9, 20, 0.4);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    font-family: inherit;
}

.dub-dropdown-btn:hover {
    background: rgba(229, 9, 20, 0.15);
    border-color: #E50914;
    transform: translateY(-1px);
}

.dub-btn-icon {
    font-size: 16px;
}

.dub-btn-arrow {
    color: #94a3b8;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.dub-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1000;
    background: #141722;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
    min-width: 260px;
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
    backdrop-filter: blur(25px);
    animation: fadeInDown 0.2s ease;
}

.dub-dropdown-menu.open {
    display: block;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dub-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dub-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.dub-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}

.dub-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.dub-menu-item.active {
    background: rgba(229, 9, 20, 0.2);
    color: #60a5fa;
    font-weight: 700;
}

.dub-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dub-tag {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dub-tag.dub-tag {
    background: rgba(229, 9, 20, 0.25);
    color: #93c5fd;
    border: 1px solid rgba(229, 9, 20, 0.4);
}

.dub-tag.sub-tag {
    background: rgba(168, 85, 247, 0.25);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.dub-item-check {
    color: #60a5fa;
    font-size: 14px;
    font-weight: 800;
}

/* =========================================================
   MOBILE DOCK (BOTTOM NAVIGATION)
   ========================================================= */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(10, 10, 15, 0.94);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 99999;
    align-items: center;
    justify-content: space-around;
    padding: 4px 6px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.mobile-nav-item .icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease;
}

.mobile-nav-item:hover {
    color: #ffffff;
}

.mobile-nav-item:hover .icon {
    transform: scale(1.15);
}

.mobile-nav-item.active {
    color: #ffffff;
    background: rgba(229, 9, 20, 0.16);
}

.mobile-nav-item.active .icon {
    transform: scale(1.15);
    color: #ff3344;
    filter: drop-shadow(0 0 8px rgba(229, 9, 20, 0.7));
}

footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 14px;
    margin-top: auto;
}

footer a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

footer span i {
    margin-right: 4px;
    color: #60a5fa;
}

/* =========================================================
   SUBTITLE STYLING (Clean & Crisp on All Devices)
   ========================================================= */
.art-subtitle {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 0 4px #000000, 0 0 2px #000 !important;
}

.art-subtitle p {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 600 !important;
    font-size: clamp(14px, 2.8vw, 22px) !important;
    line-height: 1.4 !important;
    letter-spacing: 0.3px !important;
    color: #ffffff !important;
}

/* =========================================================
   RESPONSIVE QUERIES
   ========================================================= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 38px;
    }
    .hero p {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    body {
        padding-bottom: 80px !important;
    }
    footer {
        padding-bottom: 95px !important;
    }
    .mobile-bottom-nav {
        display: flex !important;
    }
    .nav-menu {
        display: none !important;
    }
    nav {
        padding: 10px 3% !important;
        gap: 8px !important;
        justify-content: space-between !important;
    }
    .logo {
        font-size: 18px !important;
        flex-shrink: 0 !important;
    }
    .nav-right-area {
        gap: 8px !important;
        flex: 1 !important;
        justify-content: flex-end !important;
        min-width: 0 !important;
    }
    .nav-search-container {
        max-width: 210px !important;
        width: 100% !important;
        margin-left: auto !important;
    }
    .nav-search-container input {
        padding: 7px 34px 7px 12px !important;
        font-size: 12px !important;
        width: 100% !important;
    }
    .nav-search-container button {
        width: 26px !important;
        height: 26px !important;
        padding: 0 !important;
        font-size: 11px !important;
        top: 3px !important;
        right: 3px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .exit-app-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }
    .nav-suggestions {
        left: -70px !important;
        right: 0 !important;
        width: calc(100vw - 30px) !important;
        max-width: 320px !important;
    }
    .filter-panel {
        padding: 16px !important;
    }
    .filter-label {
        width: 65px !important;
        font-size: 12px !important;
    }
    .filter-pill {
        font-size: 12px !important;
        padding: 4px 10px !important;
    }
    .grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .container {
        padding: 0 4% 30px !important;
    }
    .hero {
        padding: 110px 4% 40px !important;
    }
    .hero h1 {
        font-size: 28px !important;
    }
    .hero p {
        font-size: 14px !important;
    }
    .search-container input {
        padding: 14px 20px !important;
        font-size: 15px !important;
    }
    .search-container button {
        padding: 0 20px !important;
        font-size: 14px !important;
    }
    .section-title {
        font-size: 19px !important;
        margin-bottom: 15px !important;
    }
    .title {
        font-size: 13px !important;
        line-height: 1.25 !important;
    }
    .rating {
        font-size: 12px !important;
    }
    .info {
        padding: 10px !important;
    }
    .more-btn {
        padding: 6px 14px !important;
        font-size: 12px !important;
    }
    #playerContainer {
        margin-top: 75px !important;
        padding: 0 3% !important;
    }
    .controls-area {
        padding: 16px 12px !important;
        margin-top: 16px !important;
        border-radius: 12px !important;
    }
    .dub-dropdown-menu {
        left: 0 !important;
        right: 0 !important;
        width: calc(100vw - 32px) !important;
        max-width: 320px !important;
    }
    .btn-row {
        gap: 6px !important;
        max-height: 210px !important;
    }
    .ctrl-btn {
        padding: 6px 12px !important;
        font-size: 13px !important;
        border-radius: 14px !important;
    }
}

/* Netflix-style Circular Back Button */
.back-circle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 17px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    outline: none;
}

.back-circle-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: scale(1.08) translateX(-2px);
    box-shadow: 0 0 18px rgba(229, 9, 20, 0.5);
}

.back-circle-btn:active {
    transform: scale(0.95);
}

/* ArtPlayer Control Selector Custom Styling (Clean, sleek Netflix styling) */
/* ArtPlayer Control Selector Custom Styling (Clean, sleek Netflix styling) */
.art-control-selector {
    position: relative !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 3px !important;
}

/* The clickable pill value button on the control bar */
.art-control-selector .art-selector-value {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 4px 8px !important;
    min-height: 26px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #e5e5e5 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    white-space: nowrap !important;
    -webkit-tap-highlight-color: transparent !important;
}

.art-control-selector:hover .art-selector-value,
.art-control-selector.art-selector-open .art-selector-value {
    background: rgba(229, 9, 20, 0.25) !important;
    border-color: rgba(229, 9, 20, 0.6) !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.3) !important;
}

/* Keep ArtPlayer bottom control bar visible while selector is open */
.art-video-player.art-selector-active .art-bottom,
.art-video-player.art-selector-active .art-controls,
.art-video-player:has(.art-control-selector.art-selector-open) .art-bottom {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Floating popup list above the control bar */
.art-control-selector .art-selector-list {
    position: absolute !important;
    bottom: calc(100% + 6px) !important;
    right: 0 !important;
    left: auto !important;
    width: max-content !important;
    min-width: auto !important;
    max-width: 240px !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: rgba(18, 18, 18, 0.96) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 8px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 1px rgba(255, 255, 255, 0.2) !important;
    padding: 5px !important;
    z-index: 500 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(6px) !important;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease !important;
    scrollbar-width: thin !important;
    scrollbar-color: var(--primary) rgba(255, 255, 255, 0.05) !important;
}

/* On Desktop: open on hover */
@media (hover: hover) and (pointer: fine) {
    .art-control-selector:hover .art-selector-list {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
}

/* On Click / Active (.art-selector-open): always open! */
.art-control-selector.art-selector-open .art-selector-list {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.art-control-selector .art-selector-list::-webkit-scrollbar {
    width: 4px !important;
}

.art-control-selector .art-selector-list::-webkit-scrollbar-thumb {
    background: var(--primary) !important;
    border-radius: 4px !important;
}

/* Items inside the dropdown list: compact, natural gap without huge empty space */
.art-control-selector .art-selector-list .art-selector-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #cccccc !important;
    cursor: pointer !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    margin-bottom: 2px !important;
}

.art-control-selector .art-selector-list .art-selector-item:last-child {
    margin-bottom: 0 !important;
}

.art-control-selector .art-selector-list .art-selector-item:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

.art-control-selector .art-selector-list .art-selector-item.art-current {
    background: rgba(229, 9, 20, 0.25) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Fully suppress tooltip pseudo-elements on selector controls to eliminate red triangles */
.art-control-selector[class*=hint--]:before,
.art-control-selector[class*=hint--]:after,
.art-control-dubs[class*=hint--]:before,
.art-control-dubs[class*=hint--]:after,
.art-control-quality[class*=hint--]:before,
.art-control-quality[class*=hint--]:after,
.art-control-selector:hover[class*=hint--]:before,
.art-control-selector:hover[class*=hint--]:after,
.art-control-dubs:hover[class*=hint--]:before,
.art-control-dubs:hover[class*=hint--]:after,
.art-control-quality:hover[class*=hint--]:before,
.art-control-quality:hover[class*=hint--]:after {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* -------------------------------------------------------------
   SMARTPHONE / MOBILE ARTPLAYER RESPONSIVE CONTROLS
   - Fixes Play/Pause cut-off & preserves left control width
   - Hides volume & PIP on mobile to save space
   - Always shows Fullscreen button prominently on the right
   - Compacts selector buttons so all controls fit seamlessly
   ------------------------------------------------------------- */
.art-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
}

.art-controls-left {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
    min-width: max-content !important;
    gap: 4px !important;
}

.art-control-playAndPause {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
}

.art-controls-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-shrink: 1 !important;
    gap: 4px !important;
    overflow: visible !important;
}

.art-control-fullscreen,
.art-control-fullscreenWeb {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    order: 999 !important;
    flex-shrink: 0 !important;
    min-width: 32px !important;
    cursor: pointer !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 768px), (pointer: coarse) {
    /* Hide volume and pip icons on smartphone screens to save crucial space */
    .art-control-volume,
    .art-control-volume-slider,
    .art-control-pip {
        display: none !important;
    }

    .art-controls {
        padding: 0 4px !important;
    }

    .art-controls-left {
        gap: 2px !important;
        flex-shrink: 0 !important;
        overflow: visible !important;
    }

    .art-control-playAndPause {
        min-width: 30px !important;
        width: 30px !important;
        height: 30px !important;
        flex-shrink: 0 !important;
    }

    .art-controls-right {
        gap: 2px !important;
        flex-shrink: 1 !important;
    }

    .art-control-time {
        font-size: 11px !important;
        padding: 0 4px !important;
        white-space: nowrap !important;
        letter-spacing: -0.4px !important;
    }

    .art-control-selector {
        margin: 0 1px !important;
    }

    .art-control-selector .art-selector-value {
        padding: 3px 6px !important;
        min-height: 24px !important;
        font-size: 11px !important;
        gap: 3px !important;
        border-radius: 5px !important;
    }

    .art-control-fullscreen {
        min-width: 28px !important;
        padding: 0 2px !important;
    }
}

/* In Fullscreen mode on mobile / landscape, restore full luxury space */
.art-video-player.art-fullscreen .art-control-selector .art-selector-value,
.art-video-player.art-fullscreenWeb .art-control-selector .art-selector-value {
    padding: 5px 12px !important;
    font-size: 13px !important;
    min-height: 28px !important;
    gap: 6px !important;
}

/* =========================================================
   SUBTITLE STYLING (Clean & Crisp on All Devices)
   ========================================================= */
.art-subtitle {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 0 4px #000000, 0 0 2px #000 !important;
    bottom: 50px !important;
    pointer-events: none !important;
}

.art-subtitle p {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 600 !important;
    font-size: clamp(14px, 2.5vw, 22px) !important;
    line-height: 1.4 !important;
    letter-spacing: 0.3px !important;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.65) !important;
    padding: 4px 12px !important;
    border-radius: 6px !important;
    display: inline-block !important;
}

/* =========================================================
   FOOTER STYLING
   ========================================================= */
.app-footer {
    padding: 30px 20px 40px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 12, 0.7) 100%);
    text-align: center;
}

.app-footer .copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin: 0;
}

.app-footer .footer-links {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-tg-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(34, 158, 217, 0.1);
    border: 1px solid rgba(34, 158, 217, 0.3);
    color: #4dc2f8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.footer-tg-badge i {
    font-size: 1rem;
    color: #229ED9;
    transition: transform 0.25s ease;
}

.footer-tg-badge:hover {
    background: rgba(34, 158, 217, 0.2);
    border-color: rgba(34, 158, 217, 0.6);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(34, 158, 217, 0.35);
    transform: translateY(-2px);
}

.footer-tg-badge:hover i {
    transform: scale(1.15) rotate(-5deg);
}
