.home-page {
    margin-top: 40px;
    padding-bottom: 60px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.section-title i {
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(255, 87, 34, 0.5));
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.movie-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.movie-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    border-color: var(--accent);
}

.movie-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.1);
}

.movie-rating-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
    pointer-events: none;
}

.rating-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.rating-badge.kp {
    background: rgba(59, 179, 59, 0.95);
    color: white;
}

.rating-badge.imdb {
    background: rgba(245, 197, 24, 0.95);
    color: black;
}

.movie-info {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

body:not(.light-theme) .movie-info {
    background: linear-gradient(180deg, rgba(26,28,35,0) 0%, rgba(26,28,35,1) 100%);
}

body.light-theme .movie-meta {
    color: #6B7280;
}

.movie-title {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-primary);
}

.movie-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

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

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 45px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-more:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 87, 34, 0.3);
}

.btn-more i {
    font-size: 1.1rem;
}

.loader {
    width: 45px;
    height: 45px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.partner-section {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.movie-hero-btn-container {
    margin: 40px auto;
    text-align: center;
}

.movie-hero-btn {
    display: inline-flex;
    align-items: center;
    padding: 18px 45px;
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    color: #ff8a65;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 800;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.3rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.movie-hero-btn:hover {
    color: #ffffff;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255,87,34,0.3);
}

.seo-section {
    margin-top: 80px;
    margin-bottom: 60px;
}

.seo-card {
    padding: 40px;
}

.seo-card h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    border-left: 5px solid var(--accent);
    padding-left: 20px;
}

.seo-content {
    line-height: 1.9;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

@media (max-width: 1240px) {
    .movie-grid { gap: 20px; }
}

@media (max-width: 1100px) {
    .movie-grid { grid-template-columns: repeat(4, 1fr); }
    .section-title { font-size: 1.8rem; }
}

@media (max-width: 900px) {
    .movie-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .movie-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
    }
    .section-title { font-size: 1.5rem; }
    .movie-hero-btn { font-size: 1.1rem; padding: 15px 30px; }
    .container { padding: 0 20px; } 
}
