/* CineClub — Theme */
:root {
    --main: #e50914;
    --main-dark: #b00710;
    --main-glow: rgba(229, 9, 20, 0.45);
    --dark-bg: #0b0b0d;
    --dark-elev: #16161a;
    --dark-elev-2: #1f1f24;
    --ink: #f5f5f7;
    --ink-dim: #b3b3b8;
    --ink-mute: #6e6e75;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --line-strong: rgba(255, 255, 255, 0.16);
    --radius: 18px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--ink);
    min-height: 100vh;
    padding-bottom: 90px;
    overflow-x: hidden;
}

/* HEADER */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: transparent;
    border-bottom: none;
}
.main-header-logo a { display: flex; align-items: center; }
.main-header-logo img { width: 54px; height: 54px; border-radius: 10px; }
.main-header-search { flex: 1; display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(16px) saturate(180%); border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 8px 16px; transition: all .3s cubic-bezier(0.25, 1, 0.5, 1); }
.main-header-search:focus-within { border-color: rgba(255,255,255,0.3); background: rgba(255, 255, 255, 0.22); box-shadow: 0 0 0 4px rgba(255,255,255,0.08); }
.main-header-search input { flex: 1; background: transparent; border: none; outline: none; color: var(--ink); font-size: 0.92rem; }
.main-header-search input::placeholder { color: var(--ink-mute); }
.main-header-search button { padding: 4px; display: flex; }
.main-header-search button img { width: 18px; height: 18px; opacity: 0.8; }

/* HERO SLIDE */
.main-slide {
    position: relative;
    width: 100%;
    height: clamp(380px, 60vw, 550px);
    margin-top: -79px; /* Pulls image up under the transparent header */
    overflow: hidden;
    background: var(--dark-elev);
}
.cover-blur {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 50%, var(--dark-bg) 100%);
    z-index: 3; pointer-events: none;
}
.carousel-container { width: 100%; height: 100%; position: relative; }
.carousel {
    display: flex;
    width: 100%; height: 100%;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.carousel-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
}
.carousel-slide .slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 30%, rgba(11,11,13,0.85) 90%, var(--dark-bg) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 0 20px 60px;
    z-index: 2;
}
.carousel-slide h2 { font-size: clamp(1.4rem, 4.5vw, 2.4rem); font-weight: 700; line-height: 1.1; margin-bottom: 8px; max-width: 600px; text-shadow: 0 2px 12px rgba(0,0,0,0.7); }
.carousel-slide p { font-size: 0.88rem; color: var(--ink-dim); max-width: 500px; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carousel-slide .slide-cta { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.carousel-slide .slide-cta a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; transition: all .25s; }
.carousel-slide .slide-cta .primary { background: var(--main); color: white; box-shadow: 0 6px 20px var(--main-glow); }
.carousel-slide .slide-cta .primary:hover { background: var(--main-dark); transform: translateY(-2px); }
.carousel-slide .slide-cta .secondary { background: rgba(255,255,255,0.15); color: white; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2); }
.carousel-slide .slide-cta .secondary:hover { background: rgba(255,255,255,0.25); }
.slide-controls {
    position: absolute; bottom: 18px; left: 0; right: 0;
    z-index: 4;
    display: flex; justify-content: center; gap: 6px;
}
.slide-controls .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transition: all .3s; cursor: pointer;
}
.slide-controls .dot.active { background: var(--main); width: 22px; border-radius: 3px; }

/* MAIN HOME */
.main-home { padding: 12px 0 24px; }

/* HOT SLIDE — TOP 12 (numbered cards) */
.hot-slide { padding: 24px 0 12px; }
.hot-slide-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px 14px;
}
.hot-slide-header h2 { font-size: 1.25rem; font-weight: 700; }
.hot-slide-header-actions { display: flex; gap: 6px; }
.hot-slide-header-actions .btn {
    width: 32px; height: 32px; border-radius: 50%;
    padding: 0;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.hot-slide-header-actions .btn:hover { background: rgba(255,255,255,0.18); transform: scale(1.1); box-shadow: none; filter: none; }
.hot-slide-header-actions .icon { width: 14px; height: 14px; opacity: 0.85; }
.hot-slide-content {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hot-slide-content::-webkit-scrollbar { display: none; }
.hot-slide-itens {
    display: flex;
    gap: 8px;
    padding: 0 16px;
    width: max-content;
}
.hot-item {
    display: flex; align-items: flex-end;
    width: 200px;
    gap: 0;
    text-decoration: none;
}
.hot-item .num {
    font-family: 'Sunflower', sans-serif;
    font-size: 7rem;
    line-height: 0.8;
    font-weight: 700;
    color: var(--dark-bg);
    -webkit-text-stroke: 2px var(--main);
    margin-right: -18px;
    margin-left: -8px;
    flex-shrink: 0;
}
.hot-item img {
    width: 130px; height: 195px;
    object-fit: cover; border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(0,0,0,0.5);
    transition: transform .3s;
}
.hot-item:hover img { transform: scale(1.04); }

/* SECTIONS (Lançamentos, Destaques, etc) */
main.main-home section { margin-top: 28px; }
main.main-home section > header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px 12px;
}
main.main-home section > header h2 {
    font-size: 1.18rem; font-weight: 700;
}
main.main-home section > header a {
    font-size: 0.82rem; color: var(--ink-dim);
    display: inline-flex; align-items: center; gap: 4px;
    transition: color .2s;
}
main.main-home section > header a:hover { color: var(--main); }
main.main-home section > header a img { width: 12px; height: 12px; filter: invert(1); opacity: 0.7; }

.films_slide_box {
    position: relative;
}
.films_slide_controls {
    position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%);
    pointer-events: none;
    display: none;
    justify-content: space-between;
    padding: 0 8px; z-index: 5;
}
@media (min-width: 900px) {
    .films_slide_controls { display: flex; }
}
.films_slide_controls .btn {
    width: 34px; height: 34px; border-radius: 50%;
    padding: 0;
    background: var(--dark-elev-2);
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    transition: all .3s;
}
.films_slide_controls .btn:hover { background: var(--main); border-color: var(--main); transform: scale(1.1); box-shadow: none; filter: none; }
.films_slide_controls .icon { width: 14px; height: 14px; }

.films {
    display: flex; gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 16px 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.films::-webkit-scrollbar { display: none; }
.film-card {
    flex: 0 0 auto;
    width: 138px;
    text-decoration: none;
    color: inherit;
    transition: transform .3s;
}
.film-card:hover { transform: translateY(-4px); }
.film-card .cover {
    position: relative;
    width: 100%; aspect-ratio: 2/3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--dark-elev);
    box-shadow: 0 4px 18px rgba(0,0,0,0.4);
}
.film-card .cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.film-card:hover .cover img { transform: scale(1.06); }
.film-card .cover::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
}
.film-card .badge {
    position: absolute; top: 8px; left: 8px;
    background: var(--main); color: white;
    font-size: 0.65rem; font-weight: 700;
    padding: 3px 7px; border-radius: 4px;
    z-index: 2; letter-spacing: 0.05em;
}
.film-card .badge.free { background: #1fcb4a; }
.film-card .info { padding: 8px 2px 0; }
.film-card .info h3 {
    font-size: 0.85rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.film-card .info .price {
    margin-top: 3px;
    font-size: 0.82rem;
    color: var(--main);
    font-weight: 700;
}
.film-card .info .price.free { color: #1fcb4a; }

/* BOTTOM NAV */
nav.menu {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 32px); max-width: 400px;
    background: rgba(25, 25, 30, 0.65);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
    border-radius: 36px;
    z-index: 50;
    padding: 6px 12px;
}
nav.menu ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 600px; margin: 0 auto;
}
nav.menu li a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 10px 4px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--ink-dim);
    transition: color .2s;
}
nav.menu li a img { width: 22px; height: 22px; margin-bottom: 4px; opacity: 0.65; transition: all .2s; }
nav.menu li a:hover { color: var(--ink); }
nav.menu li a:hover img { opacity: 1; }

/* GENERIC BTN */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #ff2a5f 0%, #e50914 100%);
    color: white;
    padding: 12px 22px; border-radius: 999px;
    font-weight: 700; font-size: 0.92rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    transition: all .25s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn:hover { transform: scale(1.04); box-shadow: 0 6px 20px rgba(229,9,20,0.4); filter: brightness(1.1); }
.btn-cart-active { background: linear-gradient(135deg, #ff2a5f 0%, #e50914 100%) !important; color: white !important; }

/* TOAST */
.cc-toast {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%) translateY(-100px);
    background: rgba(229,9,20,0.95);
    color: white; padding: 12px 22px;
    border-radius: 28px;
    font-size: 0.9rem; font-weight: 600;
    box-shadow: 0 6px 22px var(--main-glow);
    z-index: 9999;
    transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cc-toast.show { transform: translateX(-50%) translateY(0); }

/* RESPONSIVE */
@media (min-width: 700px) {
    .film-card { width: 160px; }
    .hot-item { width: 230px; }
    .hot-item img { width: 150px; height: 225px; }
    .hot-item .num { font-size: 8rem; }
}
@media (min-width: 1024px) {
    .main-home { padding: 20px 0 40px; }
    main.main-home section > header h2 { font-size: 1.4rem; }
}