 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Arial', sans-serif;
            background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 50%, #000000 100%);
            color: white;
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* Header */
        .header {
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(10px);
            padding: 1rem 2rem;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            border-bottom: 2px solid #8B0000;
        }

        .nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1400px;
            margin: 0 auto;
        }

        .logo {
            font-size: 2rem;
            font-weight: bold;
            background: linear-gradient(45deg, #FF0000, #8B0000);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        .nav-links a {
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
            position: relative;
        }

        .nav-links a:hover {
            color: #FF0000;
            text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background: #FF0000;
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        /* Hero Section */
        .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="grad1" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%23FF0000;stop-opacity:0.1"/><stop offset="100%" style="stop-color:%23000000;stop-opacity:0.8"/></radialGradient></defs><rect width="1000" height="1000" fill="url(%23grad1)"/></svg>') center/cover;
            position: relative;
        }

        .hero-content h1 {
            font-size: 4rem;
            margin-bottom: 1rem;
            background: linear-gradient(45deg, #FFFFFF, #FF0000);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 50px rgba(255, 0, 0, 0.3);
            animation: glow 2s ease-in-out infinite alternate;
        }

        @keyframes glow {
            from { filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.3)); }
            to { filter: drop-shadow(0 0 40px rgba(255, 0, 0, 0.6)); }
        }

        .hero-content p {
            font-size: 1.5rem;
            margin-bottom: 2rem;
            color: #ccc;
        }

        .cta-button {
            background: linear-gradient(45deg, #8B0000, #FF0000);
            color: white;
            padding: 1rem 2rem;
            border: none;
            border-radius: 50px;
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 2px;
            box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
        }

        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(255, 0, 0, 0.5);
            background: linear-gradient(45deg, #FF0000, #8B0000);
        }

        /* Main Content */
        .main-content {
            padding: 4rem 2rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        .section-title {
            font-size: 2.5rem;
            text-align: center;
            margin-bottom: 3rem;
            background: linear-gradient(45deg, #FFFFFF, #FF0000);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .anime-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-bottom: 4rem;
        }

        .anime-card {
            background: rgba(0, 0, 0, 0.8);
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            cursor: pointer;
            position: relative;
        }

        .anime-card:hover {
            transform: translateY(-10px) scale(1.02);
            border: 2px solid #FF0000;
            box-shadow: 0 20px 40px rgba(255, 0, 0, 0.3);
        }

        .anime-poster {
            width: 100%;
            height: 400px;
            background: linear-gradient(135deg, #8B0000, #000000);
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            text-align: center;
        }

        .anime-info {
            padding: 1.5rem;
        }

        .anime-title {
            font-size: 1.3rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
            color: #FF0000;
        }

        .anime-description {
            color: #ccc;
            line-height: 1.6;
            margin-bottom: 1rem;
        }

        .anime-rating {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .stars {
            color: #FFD700;
        }

        /* Detail Page Styles */
        .detail-page {
            display: none;
            padding-top: 100px;
            min-height: 100vh;
        }

        .detail-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
        }

        .back-button {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border: 1px solid #FF0000;
            padding: 0.5rem 1rem;
            border-radius: 25px;
            cursor: pointer;
            margin-bottom: 2rem;
            transition: all 0.3s ease;
        }

        .back-button:hover {
            background: #FF0000;
            transform: translateX(-5px);
        }

        .video-section {
            background: rgba(0, 0, 0, 0.9);
            border-radius: 15px;
            padding: 2rem;
            margin-bottom: 2rem;
            border: 2px solid #8B0000;
        }

        .video-player {
            width: 100%;
            height: 500px;
            background: #000;
            border-radius: 10px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border: 2px solid #FF0000;
            overflow: hidden;
        }

        .play-button {
            width: 80px;
            height: 80px;
            background: rgba(255, 0, 0, 0.8);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2rem;
            transition: all 0.3s ease;
            position: relative;
            z-index: 10;
        }

        .play-button:hover {
            background: rgba(255, 0, 0, 1);
            transform: scale(1.1);
        }

        .loading-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.9);
            display: none;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            z-index: 20;
        }

        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-top: 3px solid #FF0000;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .download-section {
            background: rgba(139, 0, 0, 0.1);
            border-radius: 15px;
            padding: 2rem;
            border: 2px solid #8B0000;
        }

        .download-button {
            background: linear-gradient(45deg, #8B0000, #FF0000);
            color: white;
            padding: 1rem 2rem;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            margin: 0.5rem;
            display: inline-block;
        }

        .download-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(255, 0, 0, 0.4);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hero-content h1 {
                font-size: 2.5rem;
            }
            
            .nav-links {
                display: none;
            }
            
            .anime-grid {
                grid-template-columns: 1fr;
            }
        }
        /* Anime Detail Page */
.anime-detail {
  max-width: 900px;
  margin: 2rem auto;
  color: #fff;
}

.video-box {
  background: #111;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.fake-loader {
  text-align: center;
  color: #bbb;
  font-size: 1.2rem;
}

.reload-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.loading-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  border: 4px solid #fff;
  border-top: 4px solid red;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.video-controls {
  display: flex;
  background: #1a1a1a;
  margin-top: 0.5rem;
}

.control-item {
  flex: 1;
  padding: 0.8rem;
  border-right: 1px solid #333;
  text-align: center;
  font-size: 0.9rem;
}

.control-item:last-child {
  border-right: none;
}

.download-btn {
  background: darkred;
  color: #fff;
  cursor: pointer;
}

.download-btn:hover {
  background: #ff1a1a;
}

.anime-info-bar {
  display: flex;
  align-items: center;
  background: #111;
  padding: 1rem;
  margin-top: 0.5rem;
}

.anime-thumb {
  margin-right: 1rem;
  border-radius: 4px;
}
/* --- Episodes dropdown --- */
.has-dropdown { position: relative; user-select: none; }
.has-dropdown .chev { margin-left: 8px; opacity: .8; transition: transform .2s ease; }
.has-dropdown.open .chev { transform: rotate(180deg); }

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #111;
  border: 1px solid #8B0000;
  border-top: none;
  display: none;
  max-height: 260px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: 0 10px 20px rgba(0,0,0,.5);
}

.dropdown-panel.show { display: block; }

.dropdown-item {
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: .95rem;
}

.dropdown-item:hover {
  background: #1a0000;
}
.anime-thumb {
  width: 50px;
  height: 70px;
  border-radius: 10px; /* rounded corners */
  object-fit: cover;  /* keeps the image ratio */
}