:root {
    --bg-color: #0d0d0d;
    --card-bg: #1a1a1a;
    --accent-color: #e50914;
    --accent-hover: #f40612;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --z-navbar: 1000;
    --z-modal: 2000;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 20px 4%;
    z-index: var(--z-navbar);
    transition: var(--transition);
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
}
.navbar.scrolled {
    background: #0d0d0d;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto;
}
.logo { font-family: var(--font-heading); font-size: 28px; font-weight: 800; color: var(--accent-color); letter-spacing: 1px; }
.nav-links { display: flex; gap: 20px; margin-left: 40px; flex-grow: 1; }
.nav-links a { font-size: 14px; color: var(--text-secondary); transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }

.nav-actions { display: flex; align-items: center; gap: 15px; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box input {
    background: rgba(0,0,0,0.5); border: 1px solid #333; color: white;
    padding: 8px 35px 8px 15px; border-radius: 20px; font-size: 14px;
    width: 200px; transition: var(--transition); outline: none;
}
.search-box input:focus { border-color: var(--text-secondary); width: 250px; }
.search-box button {
    position: absolute; right: 10px; background: none; color: var(--text-secondary); font-size: 16px;
}

.hamburger { display: none; font-size: 24px; color: white; cursor: pointer; }
.mobile-menu {
    display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #0d0d0d;
    padding: 20px; flex-direction: column; gap: 15px; text-align: center; border-bottom: 1px solid #333;
}
.mobile-menu a { font-size: 18px; }

/* Buttons */
.btn {
    padding: 10px 24px; border-radius: 4px; font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; transition: var(--transition);
}
.btn-primary { background: var(--accent-color); color: white; }
.btn-primary:hover { background: var(--accent-hover); transform: scale(1.05); }
.btn-secondary { background: rgba(109, 109, 110, 0.7); color: white; }
.btn-secondary:hover { background: rgba(109, 109, 110, 0.9); }
.btn-download { background: #2e7d32; color: white; }
.btn-download:hover { background: #388e3c; box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4); transform: scale(1.05); }
.btn-icon { background: rgba(109, 109, 110, 0.7); color: white; border-radius: 50%; width: 40px; height: 40px; display: inline-flex; justify-content: center; align-items: center; font-size: 18px; }
.btn-icon:hover { background: white; color: black; }

/* Hero */
.hero { position: relative; height: 85vh; min-height: 500px; background-size: cover; background-position: center; display: flex; align-items: center; }
.hero-content {
    position: relative; z-index: 10; max-width: 600px; margin-left: 4%; padding-top: 100px;
}
.hero h1 { font-family: var(--font-heading); font-size: 3.5rem; margin-bottom: 15px; font-weight: 700; text-shadow: 2px 2px 4px rgba(0,0,0,0.6); }
.hero p { font-size: 1.1rem; color: #fff; margin-bottom: 25px; line-height: 1.5; text-shadow: 1px 1px 2px rgba(0,0,0,0.6); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-fade-bottom { position: absolute; bottom: 0; width: 100%; height: 150px; background: linear-gradient(to bottom, rgba(13,13,13,0) 0%, rgba(13,13,13,1) 100%); }

/* Content Rows */
.main-content { padding: 0 4%; position: relative; z-index: 5; margin-top: -50px; }
.page-padding { padding: 20px 4%; margin-top: 0; }
.top-padding { padding-top: 100px; }

.content-row { margin-bottom: 40px; }
.content-row h2 { font-family: var(--font-heading); font-size: 20px; font-weight: 600; margin-bottom: 15px; color: #e5e5e5; }
.carousel-container { position: relative; }
.carousel { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 20px; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.carousel::-webkit-scrollbar { display: none; }

.slider-btn { position: absolute; top: 0; bottom: 20px; width: 40px; background: rgba(0,0,0,0.5); color: white; font-size: 24px; z-index: 10; opacity: 0; transition: var(--transition); }
.slider-btn:hover { background: rgba(0,0,0,0.8); }
.carousel-container:hover .slider-btn { opacity: 1; }
.prev-btn { left: 0; border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.next-btn { right: 0; border-top-left-radius: 4px; border-bottom-left-radius: 4px; }

/* Movie Cards */
.movie-card {
    position: relative; flex: 0 0 200px; border-radius: 8px; overflow: hidden; cursor: pointer; transition: transform 0.3s;
}
.movie-card img { width: 100%; height: 300px; object-fit: cover; display: block; }
.movie-card:hover { transform: scale(1.05); z-index: 2; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.card-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px 10px 10px; opacity: 0; transition: var(--transition);
}
.movie-card:hover .card-overlay { opacity: 1; }
.card-title { font-weight: 600; font-size: 14px; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); }
.rating { color: #f5c518; font-weight: bold; }

/* Grid Layout (Search & Category) */
.grid-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 40px; }
.category-header { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.genre-list { display: flex; flex-wrap: wrap; gap: 10px; }
.genre-pill { padding: 6px 16px; border-radius: 20px; background: #333; font-size: 14px; cursor: pointer; transition: var(--transition); }
.genre-pill:hover, .genre-pill.active { background: var(--accent-color); color: white; }
.filter-tabs { display: flex; gap: 10px; margin-top: 10px; }
.filter-btn { padding: 8px 16px; border-radius: 4px; background: transparent; border: 1px solid #555; color: white; transition: var(--transition); }
.filter-btn:hover, .filter-btn.active { background: white; color: black; border-color: white; }

.load-more-container { text-align: center; margin: 30px 0 50px; }

/* Detail Page */
#detail-page-container { min-height: 100vh; }
.detail-hero { position: relative; min-height: 80vh; background-size: cover; background-position: top; }
.detail-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.7); }
.detail-hero-content { position: relative; z-index: 10; padding: 100px 4% 40px; max-width: 1200px; margin: 0 auto; }
.back-btn { background: transparent; color: white; font-size: 16px; margin-bottom: 20px; opacity: 0.8; }
.back-btn:hover { opacity: 1; }
.detail-layout { display: flex; gap: 40px; }
.detail-poster { flex: 0 0 300px; }
.detail-poster img { width: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.detail-info { flex: 1; color: white; }
.detail-info h1 { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 5px; }
.tagline { font-style: italic; color: var(--text-secondary); margin-bottom: 15px; font-size: 1.1rem; }
.detail-meta { display: flex; gap: 15px; margin-bottom: 20px; font-size: 14px; }
.genres-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.genres-list span { border: 1px solid rgba(255,255,255,0.3); padding: 4px 12px; border-radius: 15px; font-size: 12px; }
.overview h3 { margin-bottom: 10px; font-size: 1.2rem; }
.overview p { color: #e5e5e5; line-height: 1.6; margin-bottom: 30px; font-size: 1rem; }
.detail-actions { display: flex; gap: 15px; flex-wrap: wrap; }

.cast-carousel { gap: 20px; }
.cast-card { flex: 0 0 150px; text-align: center; }
.cast-img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; background: #333; }
.cast-name { font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.cast-char { font-size: 12px; color: var(--text-secondary); }

/* Modal */
.modal { display: none; position: fixed; z-index: var(--z-modal); inset: 0; background: rgba(0,0,0,0.92); padding: 30px 20px; overflow-y: auto; }
.modal-content { position: relative; max-width: 1050px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; }
.close-modal { position: absolute; top: -35px; right: 0; color: #fff; font-size: 32px; font-weight: bold; cursor: pointer; transition: var(--transition); }
.close-modal:hover { color: var(--accent-color); }
.video-container { width: 100%; }

/* VStream Custom Video Player UI */
.custom-player-box {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}
.custom-player-box video {
    width: 100%;
    height: auto;
    max-height: 65vh;
    display: block;
    cursor: pointer;
    background: #000;
}
.custom-player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    padding: 20px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 15;
}
.custom-progress-area {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.25);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    transition: height 0.15s;
}
.custom-progress-area:hover {
    height: 9px;
}
.custom-progress-filled {
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    border-radius: 3px;
    position: relative;
}
.custom-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.custom-controls-left, .custom-controls-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.player-ctrl-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.player-ctrl-btn:hover {
    color: var(--accent-color);
    transform: scale(1.15);
}
.player-ctrl-btn.play-pause-main {
    font-size: 22px;
}
.player-time-text {
    font-size: 13px;
    color: #ddd;
    font-weight: 500;
}
.volume-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 70px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}
.speed-dropdown {
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
    cursor: pointer;
}
.center-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(229, 9, 20, 0.85);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.6);
    transition: transform 0.2s, background 0.2s;
    z-index: 10;
}
.center-play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--accent-color);
}

/* Empty States */
.empty-state { text-align: center; padding: 100px 20px; color: var(--text-secondary); }
.empty-state h2 { font-family: var(--font-heading); color: white; margin-bottom: 10px; }

/* Scroll to top */
#scroll-top { position: fixed; bottom: 30px; right: 30px; background: var(--accent-color); color: white; width: 45px; height: 45px; border-radius: 50%; font-size: 20px; display: none; justify-content: center; align-items: center; z-index: 100; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: var(--transition); }
#scroll-top:hover { transform: translateY(-5px); }

/* Toasts */
#toast-container { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; }
.toast { background: white; color: black; padding: 12px 20px; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 10px; font-weight: 500; animation: slideIn 0.3s ease forwards; }
.toast i { color: #4caf50; }
.toast.error i { color: #f44336; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.fade-out { animation: fadeOut 0.3s ease forwards; }
@keyframes fadeOut { to { transform: translateX(100%); opacity: 0; } }

/* Footer */
footer { padding: 40px 4%; background: #000; margin-top: 50px; }
.footer-content { max-width: 1000px; margin: 0 auto; }
.footer-social { display: flex; gap: 20px; margin-bottom: 20px; font-size: 24px; }
.footer-social a:hover { color: var(--text-secondary); }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 30px; font-size: 13px; color: var(--text-secondary); }
@media (min-width: 768px) { .footer-links { grid-template-columns: repeat(4, 1fr); } }
.footer-links a:hover { text-decoration: underline; }
.copyright { font-size: 12px; color: #777; }

/* Skeletons */
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton {
    background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
.card-skeleton { flex: 0 0 200px; height: 300px; border-radius: 8px; background: #2a2a2a; position: relative; overflow: hidden; }
.card-skeleton::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent); transform: translateX(-100%); animation: shimmer 1.5s infinite; }
.cast-skeleton { flex: 0 0 150px; height: 150px; border-radius: 50%; background: #2a2a2a; }
.skeleton-text { height: 20px; background: #2a2a2a; margin-bottom: 10px; border-radius: 4px; }
.skeleton-title { height: 40px; width: 60%; }
.skeleton-desc { height: 80px; width: 100%; }
.hero-skeleton { position: absolute; inset: 0; background: #1a1a1a; z-index: 1; }
.skeleton-poster { width: 300px; height: 450px; }

/* Download Modal UI */
.download-modal-box {
    max-width: 650px !important;
    background: #151515;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #2a2a2a;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}
.close-download-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}
.close-download-modal:hover {
    color: #fff;
}
.download-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 6px;
}
.download-subtitle {
    color: #aaa;
    font-size: 0.88rem;
    margin-bottom: 18px;
}
.download-server-notice {
    background: rgba(255, 179, 0, 0.1);
    border: 1px solid rgba(255, 179, 0, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #ffca28;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.download-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.download-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1f1f1f;
    border: 1px solid #333;
    padding: 14px 18px;
    border-radius: 8px;
    transition: var(--transition);
}
.download-card:hover {
    border-color: #46d369;
    background: #252525;
}
.download-quality {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.format-badge {
    background: #333;
    color: #46d369;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}
.download-meta {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    gap: 15px;
}
.btn-download-action {
    background: #2e7d32;
    color: #fff;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.btn-download-action:hover {
    background: #388e3c;
    transform: scale(1.04);
}
.download-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
    border-top: 1px solid #222;
    padding-top: 15px;
}

/* ========================================================
   AutoEmbed Watch-V2 Interface Styling
   ======================================================== */
.autoembed-player-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.autoembed-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 4px;
}
.autoembed-now-watching {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.watching-title {
    color: var(--accent-color);
}
.autoembed-top-actions {
    display: flex;
    gap: 8px;
}
.autoembed-pill-btn {
    background: #1e1e1e;
    color: #ccc;
    border: 1px solid #333;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.autoembed-pill-btn:hover, .autoembed-pill-btn.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* Alert Notification Banner (Screenshot 3) */
.autoembed-server-alert {
    background: #000;
    border: 1px solid #222;
    color: #e0e0e0;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
.autoembed-server-alert .alert-text {
    flex-grow: 1;
    font-weight: 500;
}
.alert-close-btn {
    background: transparent;
    color: #888;
    border: none;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: var(--transition);
}
.alert-close-btn:hover {
    color: #fff;
}

/* Screen container */
.autoembed-screen-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
}
.autoembed-iframe-box {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

/* TV Episode selector */
.autoembed-episode-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #111;
    border: 1px solid #282828;
    padding: 10px 16px;
    border-radius: 6px;
    flex-wrap: wrap;
}
.autoembed-episode-bar .bar-label {
    font-size: 13px;
    font-weight: 600;
    color: #eee;
}
.autoembed-select {
    background: #202020;
    color: #fff;
    border: 1px solid #444;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

/* Bottom Action Bar */
.autoembed-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0a0a0a;
    border: 1px solid #1c1c1c;
    padding: 10px 18px;
    border-radius: 6px;
    flex-wrap: wrap;
    gap: 12px;
}
.autoembed-server-toggle-btn {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.autoembed-server-toggle-btn:hover {
    background: #262626;
    border-color: #555;
}
.footer-right {
    display: flex;
    gap: 18px;
}
.footer-action-link {
    background: transparent;
    color: #ccc;
    border: none;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.footer-action-link:hover {
    color: #fff;
    transform: translateY(-1px);
}

/* AutoEmbed Server Drawer (Screenshots 1 & 2) */
.autoembed-server-drawer {
    display: none;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9);
    animation: fadeIn 0.2s ease;
}
.autoembed-server-drawer.open {
    display: block;
}
.drawer-header {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}
.drawer-close-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #444;
    padding: 4px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.drawer-close-btn:hover {
    background: #222;
    border-color: #666;
}
.server-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 6px;
}
@media (max-width: 1024px) {
    .server-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .server-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .server-grid { grid-template-columns: repeat(2, 1fr); }
}
.server-tile {
    background: #111;
    border: 1px solid #242424;
    border-radius: 8px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    user-select: none;
}
.server-tile:hover {
    background: #1c1c1c;
    border-color: #444;
    transform: translateY(-2px);
}
.server-tile.active {
    background: #ffffff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255,255,255,0.4);
}
.server-tile.active .server-tile-name {
    color: #000;
    font-weight: 700;
}
.server-tile.active .tile-drag-dots {
    color: #777;
}
.tile-drag-dots {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #444;
}
.server-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}
.server-tile-name {
    font-size: 12px;
    font-weight: 600;
    color: #e0e0e0;
    text-align: center;
}
.tile-check {
    position: absolute;
    top: 6px;
    right: 8px;
    background: #000;
    color: #fff;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}

/* Ad Banner Containers */
.ad-banner-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 0;
    padding: 0 4%;
}
.ad-banner-box {
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    text-align: center;
    transition: var(--transition);
}
.ad-banner-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-bottom: 4px;
}
.ad-banner-box iframe {
    max-width: 100% !important;
}
@media (max-width: 768px) {
    .ad-banner-box {
        overflow-x: auto;
        border: none;
        background: transparent;
    }
}
.ad-native-wrapper {
    width: 100%;
    margin: 25px 0;
    min-height: 100px;
    display: flex;
    justify-content: center;
}
