

/* --- Global Configurations & Premium Color Palette --- */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&family=Lexend:wght@300;400;500;600&display=swap');

:root {
    --bg-dark: #0f0e0d;        /* Pitch deep dark background theme */
    --bg-card: #161413;        /* Subtle crisp chocolate-brown module card */
    --accent: #ff7b54;         /* Vibrant sunset accent tone */
    --accent-hover: #ffb26b;   /* Creamy warm soft peach glow */
    --text-main: #ffffff;      /* High contrast flat title white */
    --text-muted: #a0a0a0;     /* Muted secondary detail tones */
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Lexend', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Header Component Layout --- */
.main-header {
    background-color: rgba(15, 14, 13, 0.96);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid #221f1c;
    backdrop-filter: blur(12px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: #1c1a18;
    border-radius: 24px;
    padding: 4px 16px;
    width: 35%;
    border: 1px solid #2d2926;
}

.search-container input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-main);
    padding: 8px 0;
    width: 100%;
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.search-container button {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.6rem;
    cursor: pointer;
}

/* --- Menu Sidebar Drawer Elements --- */
.side-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background-color: #141211;
    box-shadow: -10px 0 30px rgba(0,0,0,0.7);
    z-index: 200;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-menu.open {
    right: 0;
}

.close-menu {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2.8rem;
    cursor: pointer;
    margin-bottom: 40px;
}

.menu-links {
    list-style: none;
}

.menu-links li {
    margin-bottom: 24px;
}

.menu-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.25rem;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-links a.donate-btn {
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 12px 24px;
    border-radius: 24px;
    justify-content: center;
    display: flex;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.75);
    z-index: 150;
    display: none;
    backdrop-filter: blur(6px);
}

.overlay.show {
    display: block;
}

/* --- Movie Page Layout Wrapper --- */
.movie-page-wrapper {
    max-width: 1200px;
    margin: 120px auto 60px auto;
    padding: 0 24px;
}

/* --- Hero Layout Section --- */
.media-hero {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 56px;
}

.media-poster {
    flex-shrink: 0;
    width: 280px;
    aspect-ratio: 23 / 34;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.media-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-details {
    flex-grow: 1;
}

.media-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.15;
}

.media-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.rating-badge {
    background-color: rgba(255, 123, 84, 0.15);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-tag {
    background-color: #1e1b18;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.88rem;
}

.meta-year {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-left: 4px;
}

.media-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #cccccc;
    margin-bottom: 36px;
    max-width: 800px;
}

.action-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-watch {
    background-color: var(--accent);
    color: #0f0e0d;
}

.btn-watch:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-download {
    background-color: #221f1c;
    color: var(--text-main);
    border: 1px solid #36312d;
}

.btn-download:hover {
    background-color: #2d2925;
    transform: translateY(-2px);
}

/* --- Section Heading Standard --- */
.sub-heading {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 24px;
    font-weight: 500;
}

/* --- Episodes Component Section --- */
.episodes-section {
    margin-bottom: 56px;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.episode-card {
    background-color: var(--bg-card);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    border: 1px solid #1e1b19;
    transition: border-color 0.2s, background-color 0.2s;
}

.episode-card:hover, .episode-card.active {
    border-color: var(--accent);
    background-color: #1e1b19;
}

.ep-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.ep-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ep-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background-color: var(--accent);
    color: #0f0e0d;
    font-size: 0.75rem;
    padding: 2px 6px;
    font-weight: 600;
    border-radius: 2px;
}

.ep-info {
    padding: 12px;
}

.ep-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.ep-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Image Matched Grid Structure --- */
.related-section {
    margin-bottom: 56px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 32px 16px;
}

.movie-card {
    background: none;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.img-container {
    position: relative;
    aspect-ratio: 23 / 34;
    overflow: hidden;
    margin-bottom: 12px;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.play-overlay i {
    font-size: 2.5rem;
    color: #ffffff;
}

.movie-card:hover .play-overlay {
    opacity: 1;
}

.movie-info h3 {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    color: #dadada;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card:hover h3 {
    color: var(--accent);
}

.movie-meta {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* --- Clean Comments Interface Block --- */
.comments-container {
    background-color: var(--bg-card);
    padding: 32px;
    border: 1px solid #1c1a18;
}

.comment-input-box {
    margin-bottom: 32px;
}

.comment-input-box textarea {
    width: 100%;
    height: 100px;
    background-color: #0f0e0d;
    border: 1px solid #2d2926;
    border-radius: 4px;
    padding: 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    resize: none;
    outline: none;
    margin-bottom: 12px;
}

.comment-input-box textarea:focus {
    border-color: var(--accent);
}

.comment-input-box button {
    background-color: var(--accent);
    color: #0f0e0d;
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background-color 0.2s;
}

.comment-input-box button:hover {
    background-color: var(--accent-hover);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comment-node {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border-bottom: 1px solid #1f1b19;
    padding-bottom: 20px;
}

.comment-node:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.user-avatar i {
    font-size: 2.5rem;
    color: #3d3632;
}

.comment-body h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.comment-time {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.comment-body p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #bcbcbc;
}

/* --- Footer Elements --- */
.main-footer {
    background-color: #080707;
    padding: 48px 24px;
    text-align: center;
    margin-top: 96px;
    border-top: 1px solid #161413;
}

.footer-content p {
    color: #555;
    font-size: 0.9rem;
}

.footer-content .cozy-motto {
    color: #777;
    font-size: 0.95rem;
    margin-top: 8px;
}

/* --- Responsive Formatting Logic --- */
@media (max-width: 900px) {
    .media-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .media-meta-row {
        justify-content: center;
    }
    .action-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .movie-page-wrapper {
        margin-top: 100px;
    }
    .media-title {
        font-size: 2.2rem;
    }
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}


/* ------------------------------------------------
   FOOTER
------------------------------------------------ */
.site-footer {
    background-color: #0a0a0a;
    color: #bcbcbc;
    padding: 60px 40px 30px;
    font-family: var(--font-body);
    font-size: 14px;
    border-top: 1px solid #1a1a1a;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 180px;
}

.brand-col { flex: 1.5; }

.footer-logo {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    font-family: var(--font-heading);
}

.footer-logo span { color: var(--accent); }

.footer-tagline {
    line-height: 1.6;
    color: #8c8c8c;
    max-width: 260px;
}

.footer-column h3 {
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li { margin-bottom: 11px; }

.footer-column ul li a {
    color: #8c8c8c;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column ul li a:hover { color: #fff; }

.footer-socials {
    display: flex;
    gap: 14px;
    margin-top: 14px;
}

.footer-socials a {
    color: #8c8c8c;
    font-size: 17px;
    transition: transform 0.2s, color 0.2s;
}

.footer-socials a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.footer-divider {
    border: 0;
    height: 1px;
    background: #222;
    margin: 40px auto 20px;
    max-width: 1200px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    color: #555;
    font-size: 13px;
}
.parent {
  display: flex;
  justify-content: center;
}