/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff3333;
    --secondary-color: #1a1a1a;
    --text-color: #ffffff;
    --background-color: #0a0a0a;
    --card-bg: #1e1e1e;
    --hover-color: #ff4d4d;
    --gradient-overlay: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 15px 40px;
    transition: background 0.3s ease;
}

header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-container input {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 20px;
    padding: 8px 40px 8px 15px;
    color: var(--text-color);
    width: 200px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.search-container input:focus {
    width: 250px;
    background-color: rgba(255, 255, 255, 0.2);
    outline: none;
}

.search-btn {
    position: absolute;
    right: 10px;
    background: transparent;
    color: var(--text-color);
    font-size: 14px;
}

.user-profile {
    position: relative;
    cursor: pointer;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.dropdown-content {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: var(--card-bg);
    min-width: 150px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1;
}

.dropdown-content a {
    display: block;
    padding: 12px 15px;
    transition: background 0.3s ease;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-profile:hover .dropdown-content {
    display: block;
}

/* Hero Slider Styles */
.hero {
    height: 80vh;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-top: 0;
    padding: 0 60px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    transition: all 1s ease;
}
.hero-content {
    position: relative;
    max-width: 600px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 1s ease 0.3s;
}

.hero-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-info {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.hero-info .rating {
    color: var(--primary-color);
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-buttons button {
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
 /* Slide Navigation */
.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}
/* Slide Arrows */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: all 0.3s ease;
}

.prev-slide {
    left: 20px;
}

.next-slide {
    right: 20px;
}

.hero:hover .slide-arrow {
    opacity: 0.7;
}

.slide-arrow:hover {
    background-color: var(--primary-color);
    opacity: 1 !important;
}

/* hero buttons */
.btn-play {
    background-color: var(--primary-color);
    color: white;
}

.btn-play:hover {
    background-color: var(--hover-color);
    transform: scale(1.05);
}

.btn-add, .btn-info {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-add:hover, .btn-info:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* vertical scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--card-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--hover-color);
}
/* Content Sections */
.content-section {
    padding: 40px 60px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: '';
    height: 2px;
    width: 50px;
    background-color: var(--primary-color);
    margin-left: 15px;
}

.content-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--card-bg);
}

.content-slider::-webkit-scrollbar {
    height: 6px;
}

.content-slider::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 10px;
}

.content-slider::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}
.content-watch {
  min-width: 200px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
  background-color: var(--card-bg);
}
.content-watch:hover {
  transform: scale(1.05);
}

.content-watch img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.content-watch:hover img {
  filter: brightness(0.7);
}
.content-card {
    min-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    background-color: var(--card-bg);
}

.content-card:hover {
    transform: scale(1.05);
}

.content-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.content-card:hover img {
    filter: brightness(0.7);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 60px;
}

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

.card-buttons {
    display: flex;
    gap: 15px;
}

.card-buttons button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card-buttons button:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.card-info {
    padding: 15px;
    width: 120px;
}

.card-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.card-info p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 3;
}

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

/* Manga Section */
.manga-slider .manga-card {
    position: relative;
}

.manga-card .card-buttons button:first-child {
    background-color: var(--primary-color);
}

/* Categories Section */
.categories-section {
    padding: 40px 60px;
}

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

.category-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 51, 51, 0.1);
}

.category-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    padding: 60px 40px 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-column {
    min-width: 200px;
}

.footer-column h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-column a {
    display: block;
    margin-bottom: 12px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.app-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.app-button {
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.app-button:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .content-section, .categories-section {
        padding: 30px 40px;
    }
}

@media (max-width: 992px) {
    .navbar {
        flex-wrap: wrap;
    }
    
    .nav-links {
        order: 3;
        width: 100%;
        margin-top: 15px;
        justify-content: space-between;
    }
    
    .hero {
        height: 70vh;
        padding: 0 40px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    
    .nav-links {
        gap: 15px;
        overflow-x: auto;
        padding-bottom: 5px;
        justify-content: flex-start;
    }
    
    .nav-links a {
        font-size: 14px;
        white-space: nowrap;
    }
    
    .search-container input {
        width: 150px;
    }
    
    .search-container input:focus {
        width: 180px;
    }
    
    .hero {
        height: 60vh;
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .content-section, .categories-section {
        padding: 30px 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 50vh;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-wrap: wrap;
    }
    
    .content-card {
        min-width: 150px;
    }
    
    .content-card img {
        height: 225px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}