* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Bu değerler header.php'deki inline style ile override edilecek */
    --primary-color: #e50914;
    --primary-hover: #f40612;
    --secondary-color: #6c757d;
    --dark: #141414;
    --dark-secondary: #1a1a1a;
    --light: #0a0a0a;
    --white: #ffffff;
    --text: #ffffff;
    --text-secondary: #b3b3b3;
    --border: #2a2a2a;
    --card-bg: rgba(42, 42, 42, 0.6);
    --overlay: rgba(0, 0, 0, 0.7);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--dark);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(229, 9, 20, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(229, 9, 20, 0.1) 0%, transparent 50%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* Header - HDFilmizle Style */
.site-header {
    background: #000000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color, #e50914);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::before {
    content: '▶';
    font-size: 24px;
    color: var(--primary-color);
    display: inline-block;
}

.logo h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--white);
}

.main-nav a.active {
    color: var(--primary-color, #e50914);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    padding: 0;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    min-width: 250px;
}

.header-search form:focus-within {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.header-search input {
    padding: 10px 15px;
    border: none;
    background: transparent;
    border-radius: 5px;
    outline: none;
    color: var(--white);
    font-size: 13px;
    flex: 1;
    min-width: 0;
}

.header-search input::placeholder {
    color: var(--text-secondary);
    font-size: 13px;
}

.header-search button {
    padding: 10px 15px;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-left: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    border-radius: 0 5px 5px 0;
}

.header-search button:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-register, .btn-login {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.btn-register {
    background: transparent;
    color: var(--white);
}

.btn-register:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.btn-login {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-login:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-bottom: 60px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(20, 20, 20, 0.9) 0%, rgba(20, 20, 20, 0.5) 50%, rgba(20, 20, 20, 0) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: white;
    padding: 60px;
    max-width: 600px;
}

.slide-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255,255,255,0.6);
    transform: scale(1.2);
}

.dot.active {
    background: var(--primary-color);
    border-color: white;
    width: 30px;
    border-radius: 6px;
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

.main-content {
    min-width: 0;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.sidebar-widget {
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-widget h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 8px;
}

.sidebar-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: block;
    padding: 6px 0;
}

.sidebar-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Son Eklenen Diziler için özel stil */
.series-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.series-thumb {
    width: 45px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.series-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    justify-content: center;
    align-items: flex-start;
}

.series-title {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
    word-break: break-word;
}

.sidebar-list a:hover .series-title {
    color: var(--primary-color);
}

/* Sections */
.section {
    padding: 40px 0;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Hero Carousel - HDFilmizle Style */
.hero-carousel {
    margin-bottom: 40px;
    position: relative;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    gap: 15px;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    padding-top: 40%;
    overflow: hidden;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    padding: 30px;
}

.carousel-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.carousel-year {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.carousel-info h3 {
    color: white;
    font-size: 20px;
    font-weight: 700;
    flex: 1;
}

.carousel-badges {
    display: flex;
    gap: 8px;
}

.carousel-badges .lang-icon,
.carousel-badges .sub-icon {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Content Grid - HDFilmizle Style */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.content-card {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.content-card:hover {
    transform: translateY(-8px) scale(1.05);
    z-index: 10;
}

.content-card a {
    text-decoration: none;
    color: inherit;
}

.content-image {
    position: relative;
    width: 100%;
    padding-top: 150%;
    overflow: hidden;
    background: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 12px;
}

.content-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.content-card:hover .content-image img {
    transform: scale(1.08);
}

.content-card:hover .content-image {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.no-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    opacity: 0.5;
}

.new-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.rating-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #ffc107;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.year-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.content-info {
    padding: 0;
}

.content-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    transition: color 0.3s ease;
    min-height: 40px;
}

.content-card:hover .content-info h3 {
    color: var(--primary-color);
}

.content-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.content-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--text-secondary);
    align-items: center;
    flex-wrap: wrap;
}

.content-meta .views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.content-meta .year {
    display: flex;
    align-items: center;
    gap: 4px;
}

.language-badges {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
    z-index: 2;
}

.lang-badge {
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.lang-badge.turkish-dub {
    font-size: 12px;
    padding: 2px 4px;
}

.content-genres {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.category-card:hover h3 {
    color: var(--primary-color);
}

.category-card span {
    font-size: 14px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, var(--dark) 0%, #000000 100%);
    color: white;
    padding: 30px 0 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border);
}

.footer-content {
    margin-bottom: 20px;
}

.footer-section {
    text-align: center;
}

.footer-section h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.footer-section p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

.footer-custom-content {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        padding: 15px 0;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        order: 3;
        width: 100%;
    }
    
    .main-nav a {
        font-size: 13px;
    }
    
    .header-search {
        order: 2;
        width: 100%;
    }
    
    .header-search form {
        width: 100%;
        max-width: 100%;
    }
    
    .header-actions {
        order: 1;
        width: 100%;
        justify-content: flex-end;
    }
    
    .btn-register, .btn-login {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .main-layout {
        padding: 15px;
        gap: 20px;
    }
    
    .carousel-slide {
        padding-top: 60%;
    }
    
    .carousel-info h3 {
        font-size: 16px;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 15px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
}

