/* ShashaOne - Movie Site Theme */
:root {
    --bg-body: #0f0f12;
    --bg-card: #1a1a20;
    --bg-header: rgba(15, 15, 18, 0.95);
    --text-main: #e0e0e0;
    --text-sub: #a0a0a0;
    --accent: #ff4757; /* Red accent for play buttons */
    --hover: #2f3542;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding-top: 70px; /* Space for fixed header */
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--accent); }

/* Header */
.navbar {
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #222;
    height: 60px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-right: 40px;
}

.nav-menu {
    display: flex;
    gap: 20px;
    height: 100%;
    align-items: center;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 60px;
    left: 0;
    background: var(--bg-card);
    min-width: 150px;
    display: none;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}
.nav-item:hover .dropdown-menu { display: flex; }
.dropdown-item {
    padding: 10px 15px;
    font-size: 0.9rem;
    color: var(--text-sub);
}
.dropdown-item:hover {
    background: var(--hover);
    color: #fff;
}

.search-box {
    margin-left: auto;
    position: relative;
}
.search-input {
    background: #222;
    border: 1px solid #333;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    outline: none;
    width: 200px;
    transition: all 0.3s;
}
.search-input:focus { border-color: var(--accent); }

/* Grid Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 30px 0 15px;
    padding-left: 10px;
    border-left: 4px solid var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.more-link { font-size: 0.9rem; color: var(--text-sub); font-weight: normal; }

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px 15px;
}

/* Poster Card */
.video-card {
    display: block;
    position: relative;
    transition: transform 0.2s;
}
.video-card:hover { transform: translateY(-5px); }

.poster {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #222;
}
.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}
.poster:hover img { opacity: 0.8; }

.video-info { padding: 8px 0; }
.video-title {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.video-meta { font-size: 0.8rem; color: var(--text-sub); }

.video-tag {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
}
.video-year {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px 8px 6px;
    font-size: 0.8rem;
    color: #ddd;
}

/* Watch Page */
.player-container {
    background: #000;
    aspect-ratio: 16/9;
    width: 100%;
    max-height: 70vh;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}
.player-iframe { width: 100%; height: 100%; border: none; }

.info-section {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.info-header { display: flex; gap: 20px; }
.info-poster { width: 120px; aspect-ratio: 2/3; border-radius: 6px; object-fit: cover; }
.info-content { flex: 1; }
.info-title { font-size: 1.5rem; margin: 0 0 10px; }
.info-row { font-size: 0.9rem; color: var(--text-sub); margin-bottom: 6px; }
.info-desc { font-size: 0.9rem; line-height: 1.6; color: #bbb; margin-top: 10px; }

/* Episodes */
.episode-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
}
.ep-btn {
    background: #333;
    border: 1px solid #444;
    color: #fff;
    padding: 8px 0;
    text-align: center;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}
.ep-btn:hover { background: #444; }
.ep-btn.active {
    background: var(--accent);
    border-color: var(--accent);
}

/* Footer */
.footer {
    border-top: 1px solid #222;
    padding: 30px 20px;
    text-align: center;
    color: #666;
    margin-top: 50px;
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    margin-right: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar { padding: 0 10px; }
    
    .mobile-toggle { display: block; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid #333;
        align-items: flex-start;
    }
    .nav-menu.active { display: flex; }
    .nav-item { height: auto; padding: 10px 0; width: 100%; display: block; }
    .dropdown-menu { position: static; box-shadow: none; display: none; padding-left: 20px; background: transparent; }
    .nav-item:hover .dropdown-menu { display: block; }

    .video-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .info-header { flex-direction: column; }
    .info-poster { width: 100px; }
}
