:root {
    --bg-color: #0f0f0f;
    --text-color: #ffffff;
    --primary-color: #ff0055;
    /* Neon Pink/Red */
    --secondary-color: #222;
    --accent-color: #1f1f1f;
    --glass-bg: rgba(255, 0, 85, 0.1);
    /* Pink tint */
    --glass-border: rgba(255, 0, 85, 0.3);
    /* Pink border */
    --transition: all 0.3s ease;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --logo-glow: 0 0 20px rgba(255, 0, 85, 0.6);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Wrapper */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 40px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.nav-links a {
    margin-inline-start: 20px;
    font-size: 0.9rem;
    color: #aaa;
}

.nav-links a:hover {
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: #ff0f1f;
}

.btn-secondary {
    background: var(--glass-bg);
    color: #fff;
    border: 1px solid var(--glass-border);
}

.btn-danger {
    background: #d9534f;
    color: #fff;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* Layout Grid */
.grid {
    display: grid;
    gap: 20px;
}

.grid-cols-4 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Modern Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 45vh;
    /* Taller for impact */
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    /* Smooth fade */
    background-size: cover;
    background-position: center top;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Gradient Overlay */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(15, 15, 15, 0.9) 0%,
            rgba(15, 15, 15, 0.7) 40%,
            rgba(15, 15, 15, 0.1) 100%);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 800px;
    z-index: 3;
}

/* Text Animations */
.slide-active .slide-title,
.slide-active .slide-meta,
.slide-active .slide-desc,
.slide-active .slide-action {
    opacity: 1;
    transform: translateY(0);
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    background: linear-gradient(to right, #fff, #ccc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 1;
    /* Keep visible to avoid flickering, animate if needed manually or keep simple */
}

.slide-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #ccc;
}

.slide-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.slide-desc {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 600px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Button with Glow */
.btn-glow {
    position: relative;
    overflow: hidden;
    background: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.4);
    transition: all 0.3s ease;
    border: none;
    color: white;
    font-weight: bold;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(255, 0, 85, 0.6);
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.nav-dot {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.nav-dot.active {
    background: rgba(255, 255, 255, 0.4);
}

.nav-dot.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--primary-color);
    animation: progress 5s linear;
}

@keyframes progress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }

    .slide-content {
        padding: 30px;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-desc {
        font-size: 1rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Cards */
.card {
    background: var(--accent-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    background: #000;
    /* Fallback for transparency/contain */
}

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 1rem;
    margin: 0 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    font-size: 0.8rem;
    color: #666;
}

/* Player */
.player-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

video {
    width: 100%;
    height: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #ccc;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    border-radius: 6px;
    box-sizing: border-box;
    /* Fix width overflow */
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Admin Auth */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: var(--accent-color);
    border-radius: 12px;
    text-align: center;
}

/* Admin Dashboard */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: var(--accent-color);
    border-radius: 8px;
    overflow: hidden;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
    font-weight: 500;
}

td {
    font-size: 0.9rem;
}

tr:last-child td {
    border-bottom: none;
}

.badge {
    padding: 3px 8px;
    border-radius: 100px;
    background: var(--glass-bg);
    font-size: 0.75rem;
}

/* Layout Grid (Main + Sidebar) */
.layout-grid {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.main-content {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 900px) {
    .layout-grid {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-width: 0 !important;
    }

    .grid-cols-4,
    .grid-cols-3 {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--accent-color);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* NEW Badge */
.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #e94560 0%, #ff6b9d 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(233, 69, 96, 0.6);
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.6);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #888;
}

.breadcrumbs a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs .separator {
    color: #555;
}

.breadcrumbs .current {
    color: var(--primary-color);
    font-weight: 600;
}