/*
Theme Name: Aflamicose Ultimate Cinema
Author: Aflamicose Studio
Version: 3.0.0
Description: High-End Cinema & Streaming WordPress Theme.
*/

:root {
    --bg-main: #07090e;
    --bg-surface: #0e121b;
    --bg-card: #131926;
    --bg-elevated: #1a2234;
    --accent: #e50914;
    --accent-glow: rgba(229, 9, 20, 0.4);
    --gold: #f5c518;
    --cyan: #00d2ff;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #1e293b;
    --border-subtle: rgba(255, 255, 255, 0.07);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --font-main: 'Poppins', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg-main); color: var(--text-primary); font-family: var(--font-main); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease, transform 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { background: rgba(7, 9, 14, 0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-subtle); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.site-logo a { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; color: #fff; }
.site-logo a span { color: var(--accent); }
.main-nav ul { display: flex; list-style: none; gap: 24px; align-items: center; }
.main-nav a { font-size: 14px; font-weight: 600; color: #cbd5e1; }
.main-nav a:hover { color: var(--accent); }
.main-nav a.badge-adult { color: #ff4d4d; border: 1px solid rgba(255, 77, 77, 0.4); padding: 4px 10px; border-radius: 20px; font-size: 12px; }

.search-bar-wrap { position: relative; flex: 1; max-width: 420px; }
.search-bar-wrap input { width: 100%; background: var(--bg-surface); border: 1px solid var(--border-color); padding: 12px 45px 12px 20px; border-radius: 30px; color: #fff; font-size: 14px; outline: none; transition: border-color 0.2s; }
.search-bar-wrap input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.search-bar-wrap button { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 15px; }

.header-actions { display: flex; gap: 12px; }
.btn-auth-login { background: var(--bg-card); border: 1px solid var(--border-color); color: #fff; padding: 9px 18px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.btn-auth-signup { background: var(--accent); color: #fff; padding: 9px 18px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; box-shadow: 0 4px 14px var(--accent-glow); }

/* Hero */
.hero-slider-box { position: relative; min-height: 520px; background-size: cover; background-position: center top; border-radius: var(--radius-lg); margin: 30px 0 40px; overflow: hidden; border: 1px solid var(--border-subtle); display: flex; align-items: flex-end; }
.hero-billboard-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, #07090e 10%, rgba(7,9,14,0.7) 60%, rgba(7,9,14,0.2) 100%), linear-gradient(90deg, #07090e 25%, transparent 80%); }
.hero-content-inner { position: relative; z-index: 2; padding: 50px; max-width: 750px; }
.hero-tag { background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; display: inline-block; margin-bottom: 14px; letter-spacing: 0.5px; }
.hero-heading { font-size: 44px; font-weight: 900; line-height: 1.15; margin-bottom: 14px; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.hero-meta-row { display: flex; gap: 14px; align-items: center; color: var(--text-secondary); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.meta-chip { background: rgba(255, 255, 255, 0.1); padding: 3px 10px; border-radius: 4px; color: #fff; font-size: 12px; }
.hero-synopsis { color: #cbd5e1; font-size: 15px; line-height: 1.7; margin-bottom: 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.btn-hero-play { background: var(--accent); color: #fff; padding: 14px 32px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 6px 20px var(--accent-glow); }
.btn-hero-play:hover { background: #b80710; transform: translateY(-2px); }

/* Categories Grid */
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 45px; }
.category-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px; display: flex; align-items: center; gap: 16px; transition: all 0.25s ease; }
.category-card:hover { border-color: var(--accent); transform: translateY(-4px); background: var(--bg-elevated); }
.category-card-icon { width: 48px; height: 48px; background: rgba(229, 9, 20, 0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--accent); }
.category-card-info h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.category-card-info p { font-size: 12px; color: var(--text-secondary); }

/* Movies Grid */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; border-left: 4px solid var(--accent); padding-left: 14px; }
.section-header h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.movie-grid-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px; margin-bottom: 50px; }
.movie-item-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; }
.movie-item-card:hover { transform: translateY(-6px); border-color: rgba(229, 9, 20, 0.5); box-shadow: 0 12px 30px rgba(0,0,0,0.5); }
.card-thumb-wrap { position: relative; aspect-ratio: 2/3; overflow: hidden; background: #0e121b; }
.card-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.movie-item-card:hover .card-thumb-wrap img { transform: scale(1.05); }
.card-badge-quality { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.85); font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 4px; color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.card-badge-rating { position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,0.85); font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 4px; color: var(--gold); display: flex; align-items: center; gap: 4px; }
.card-info-wrap { padding: 12px 14px; }
.card-title-text { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; color: #fff; }
.card-meta-text { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); font-weight: 500; }

/* Single Movie View */
.single-movie-hero-section { position: relative; padding: 50px 0; background-size: cover; background-position: center; border-bottom: 1px solid var(--border-color); }
.single-movie-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,9,14,0.85) 0%, var(--bg-main) 100%); }
.single-movie-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 280px 1fr 300px; gap: 36px; }
.single-poster-frame { border-radius: var(--radius-md); overflow: hidden; border: 2px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.7); }
.single-poster-frame img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.single-details-col h1 { font-size: 34px; font-weight: 900; margin-bottom: 12px; }
.single-chips-bar { display: flex; gap: 10px; margin-bottom: 16px; align-items: center; }
.score-pill { background: var(--bg-card); border: 1px solid var(--cyan); color: var(--cyan); padding: 5px 12px; border-radius: 6px; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.single-storyline { color: #cbd5e1; font-size: 15px; line-height: 1.8; margin-bottom: 24px; }

.cast-carousel-section { margin-top: 24px; }
.cast-carousel-section h4 { font-size: 14px; font-weight: 800; color: #cbd5e1; margin-bottom: 12px; letter-spacing: 0.5px; }
.cast-scroll-track { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; }
.cast-member-card { text-align: center; min-width: 76px; }
.cast-member-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-color); margin: 0 auto 6px; }
.cast-member-card span { font-size: 11px; font-weight: 600; color: #fff; display: block; line-height: 1.2; }

.single-sidebar-specs { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; height: fit-content; }
.single-sidebar-specs h3 { font-size: 16px; font-weight: 800; margin-bottom: 16px; border-bottom: 1px solid var(--border-subtle); padding-bottom: 8px; }
.spec-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); font-size: 13px; }
.spec-label { color: var(--text-secondary); font-weight: 500; }
.spec-val { color: #fff; font-weight: 600; }

/* Video Player & Downloads */
.player-container-box, .downloads-container-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 28px; margin: 35px 0; }
.server-tabs-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.server-tab-btn { background: var(--bg-surface); color: #fff; border: 1px solid var(--border-color); padding: 11px 20px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.server-tab-btn.active, .server-tab-btn:hover { background: var(--accent); border-color: var(--accent); box-shadow: 0 4px 14px var(--accent-glow); }
.video-responsive-frame { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius-md); background: #000; border: 1px solid var(--border-color); }
.video-responsive-frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

.downloads-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 18px; }
.download-action-btn { background: var(--bg-surface); border: 1px solid var(--border-color); padding: 16px; border-radius: var(--radius-md); text-align: center; font-weight: 700; font-size: 14px; display: block; transition: all 0.2s; }
.download-action-btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

@media (max-width: 1024px) {
    .single-movie-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .hero-heading { font-size: 32px; }
}
@media (max-width: 640px) {
    .main-nav, .header-actions { display: none; }
    .categories-grid { grid-template-columns: 1fr; }
    .movie-grid-layout { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
/* ======================================================
   TMDb Exact Viewport Replica Styles (Aflamicose Style)
   ====================================================== */

/* Hero Banner */
.tmdb-hero-wrapper {
    position: relative;
    background-size: cover;
    background-position: center top;
    color: #ffffff;
}
.tmdb-hero-custom-overlay {
    background: linear-gradient(to right, rgba(31.5, 10.5, 10.5, 1) calc((50vw - 170px) - 340px), rgba(31.5, 10.5, 10.5, 0.84) 50%, rgba(31.5, 10.5, 10.5, 0.84) 100%);
    padding: 40px 0;
}
.tmdb-hero-flex-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: center;
}
.tmdb-poster-box {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}
.tmdb-poster-box img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.tmdb-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 6px;
}
.tmdb-year {
    font-weight: 400;
    opacity: 0.8;
}
.tmdb-submeta-line {
    font-size: 14px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}
.tmdb-pg-badge {
    border: 1px solid rgba(255,255,255,0.6);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 12px;
}

/* User Score Circle & Actions */
.tmdb-actions-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tmdb-circle-score-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tmdb-circle-score {
    width: 60px;
    height: 60px;
    background: #081c22;
    border: 4px solid #21d07a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
}
.tmdb-circle-score sup {
    font-size: 9px;
}
.score-label {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.tmdb-vibe-pill {
    background: #032541;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tmdb-icon-btn-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tmdb-btn-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #032541;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}
.tmdb-btn-trailer {
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tmdb-tagline {
    color: #94a3b8;
    font-size: 15px;
    margin-bottom: 14px;
}
.tmdb-overview-block h3 {
    font-size: 18px;
    margin-bottom: 6px;
}
.tmdb-overview-block p {
    font-size: 14.5px;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 22px;
}

.tmdb-crew-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.crew-member strong {
    display: block;
    font-size: 14px;
}
.crew-member span {
    font-size: 12px;
    color: #cbd5e1;
}

/* Awards Bar */
.tmdb-awards-bar {
    background: #0d253f;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 14px 0;
}
.awards-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}
.award-title {
    font-weight: 800;
    letter-spacing: 1px;
    color: #01b4e4;
    font-size: 14px;
}
.award-desc {
    font-size: 13.5px;
    color: #cbd5e1;
}

/* Main Layout Grid */
.tmdb-main-layout-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
}
.tmdb-section-heading {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #fff;
}

/* Cast Cards Track */
.tmdb-cast-cards-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 14px;
}
.tmdb-cast-card {
    min-width: 140px;
    max-width: 140px;
    background: #131926;
    border: 1px solid #1e293b;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.cast-card-img img {
    width: 100%;
    height: 175px;
    object-fit: cover;
}
.cast-card-meta {
    padding: 10px;
}
.cast-card-meta h4 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}
.cast-card-meta p {
    font-size: 11.5px;
    color: #94a3b8;
}

/* Video Player & Servers */
.tmdb-server-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.tmdb-srv-btn {
    background: #131926;
    color: #fff;
    border: 1px solid #1e293b;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}
.tmdb-srv-btn.active, .tmdb-srv-btn:hover {
    background: #e50914;
    border-color: #e50914;
}
.tmdb-player-screen {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}
.tmdb-player-screen iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Gallery & Downloads */
.tmdb-media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.tmdb-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.tmdb-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tmdb-downloads-flex {
    display: flex;
    gap: 14px;
}
.tmdb-dl-btn {
    background: #131926;
    border: 1px solid #1e293b;
    padding: 14px 24px;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}
.tmdb-dl-btn:hover {
    background: #e50914;
}

/* Sidebar Styling */
.tmdb-sidebar-social-links {
    display: flex;
    gap: 18px;
    font-size: 20px;
    margin-bottom: 25px;
}
.tmdb-meta-data-group {
    margin-bottom: 20px;
}
.tmdb-meta-data-group h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}
.tmdb-meta-data-group p {
    font-size: 13.5px;
    color: #94a3b8;
}
.tmdb-keywords-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.kw-tag {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #cbd5e1;
}
.tmdb-content-score-box {
    background: #131926;
    border: 1px solid #1e293b;
    padding: 16px;
    border-radius: 8px;
    margin-top: 25px;
}
.tmdb-content-score-box h4 {
    font-size: 13px;
    margin-bottom: 8px;
}
.score-bar-wrap {
    height: 8px;
    background: #081c22;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}
.score-bar-fill {
    height: 100%;
    background: #21d07a;
}
.tmdb-content-score-box span {
    font-size: 11px;
    color: #21d07a;
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .tmdb-hero-flex-grid { grid-template-columns: 1fr; }
    .tmdb-main-layout-grid { grid-template-columns: 1fr; }
}