@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #0a0a0a;
    --bg-secondary: #141414;
    --accent: #00c8c8;
    --accent-hover: #00a0a0;
    --text-main: #ffffff;
    --text-muted: #888888;
    --font-family: 'Poppins', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--bg-main); color: var(--text-main); font-family: var(--font-family); overflow-x: hidden; padding-bottom: 60px; }
a { text-decoration: none; color: inherit; }

/* ---------------- HEADER & NAV ---------------- */
.f-navbar { display: flex; justify-content: space-between; align-items: center; padding: 0 5%; height: 65px; background: rgba(10, 10, 10, 0.95); position: fixed; top: 0; width: 100%; z-index: 1000; backdrop-filter: blur(8px); }
.f-nav-left { display: flex; align-items: center; gap: 15px; }
.f-hamburger { background: none; border: none; color: var(--text-main); font-size: 1.4rem; cursor: pointer; }
.f-logo { font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; letter-spacing: 0.5px; }
.f-logo-accent { background-color: var(--accent); color: #000; padding: 2px 6px; border-radius: 4px; margin-right: 2px; font-weight: 800; }

.f-nav-center { display: none; }
.f-search-desk { background: #1a1a1a; border: 1px solid #222; border-radius: 20px; display: flex; align-items: center; padding: 6px 15px; width: 350px; }
.f-search-desk input { background: none; border: none; color: #fff; width: 100%; outline: none; font-family: inherit; font-size: 0.85rem; padding: 4px; }
.f-search-desk button { background: none; border: none; color: #666; cursor: pointer; font-size: 0.9rem; }
.f-nav-right .f-mobile-search { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; }

#app { min-height: 80vh; }

/* ---------------- HERO SECTION ---------------- */
.f-hero-wrapper { position: relative; height: 65vh; background: #000; margin-bottom: 30px; }
.f-hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center top; display: flex; align-items: flex-end; opacity: 0; transition: opacity 0.8s ease-in-out; }
.f-hero-slide.active { opacity: 1; z-index: 2; }
.f-hero-gradient { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, var(--bg-main) 0%, rgba(10,10,10,0.5) 50%, rgba(10,10,10,0.8) 100%); }

.f-hero-content { position: relative; z-index: 3; width: 100%; padding: 20px 5% 40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.f-hero-title { font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,0.9); line-height: 1.1; }

.f-hero-meta { display: flex; gap: 10px; align-items: center; justify-content: center; margin-bottom: 8px; font-size: 0.8rem; font-weight: 500; color: #ddd; flex-wrap: wrap; }
.f-badge-cyan { background-color: var(--accent); color: #000; padding: 2px 8px; border-radius: 12px; font-weight: 700; font-size: 0.7rem; }
.f-badge-out { border: 1px solid #ccc; padding: 1px 8px; border-radius: 12px; font-size: 0.7rem; }
.f-hero-genre { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 25px; text-transform: lowercase; }

.f-btn-play { background-color: var(--accent); color: #000; border: none; padding: 12px 35px; border-radius: 30px; font-size: 1rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: transform 0.2s ease; width: 100%; max-width: 250px; justify-content: center; }
.f-btn-play:hover { transform: scale(1.05); background-color: #00e6e6; }

/* ---------------- TITLES ---------------- */
.f-sec-title { margin: 30px 5% 15px; font-size: 1.05rem; font-weight: 500; display: flex; align-items: center; color: #ddd; text-transform: uppercase; gap: 8px; }
.f-sec-center { justify-content: center; }
.f-sec-left { justify-content: flex-start; }
.f-sec-title i { color: #888; }
.f-sec-left i { color: var(--accent); }

/* ---------------- TRENDING SLIDER (16:9 Landscape) ---------------- */
.f-trend-slider { display: flex; overflow-x: auto; padding: 0 5% 20px; gap: 15px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.f-trend-slider::-webkit-scrollbar { display: none; }

.f-trend-card { flex: 0 0 260px; aspect-ratio: 16/9; position: relative; border-radius: 8px; overflow: hidden; background: #111; scroll-snap-align: start; display: block; transition: transform 0.2s; }
.f-trend-card:hover { transform: scale(1.03); }
.f-trend-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.f-trend-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px 12px 10px; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; }
.f-trend-title { font-size: 0.9rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.f-trend-genre { font-size: 0.7rem; color: var(--accent); text-transform: lowercase; }

/* ---------------- RECOMMENDED GRID (2:3 Vertical) ---------------- */
.f-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; padding: 0 5% 40px; }

.f-grid-card { display: flex; flex-direction: column; text-decoration: none; transition: transform 0.2s; }
.f-grid-card:hover { transform: translateY(-5px); }
.f-grid-img-wrap { width: 100%; aspect-ratio: 2/3; position: relative; border-radius: 6px; overflow: hidden; background: #111; margin-bottom: 8px; }
.f-grid-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.f-hd-badge { position: absolute; top: 6px; left: 6px; background-color: var(--accent); color: #000; font-size: 0.6rem; padding: 2px 4px; border-radius: 2px; font-weight: 700; z-index: 2; }

.f-grid-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.65rem; color: #777; margin-bottom: 4px; }
.f-type-badge { border: 1px solid #333; padding: 1px 6px; border-radius: 10px; }
.f-grid-title { font-size: 0.85rem; font-weight: 500; color: #eee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- PLAYER ---------------- */
.f-player-wrap { width: 100%; max-width: 1000px; margin: 0 auto; background: #000; aspect-ratio: 16/9; display: none; }
.f-player-wrap iframe { width: 100%; height: 100%; border: none; }
.f-overview { max-width: 800px; margin: 0 auto; padding: 25px 5%; font-size: 0.85rem; color: #aaa; line-height: 1.6; text-align: center; }

/* ---------------- MOBILE BOTTOM NAV ---------------- */
.f-bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; height: 55px; background: rgba(10, 10, 10, 0.98); border-top: 1px solid #1a1a1a; display: flex; justify-content: space-around; align-items: center; z-index: 999; backdrop-filter: blur(5px); }
.f-nav-item { display: flex; flex-direction: column; align-items: center; color: #555; font-size: 0.65rem; gap: 4px; font-weight: 500; }
.f-nav-item i { font-size: 1.1rem; }
.f-nav-item.active { color: var(--accent); }

/* ---------------- PC DESKTOP ADAPTATION ---------------- */
@media (min-width: 768px) {
    .f-nav-center { display: block; position: absolute; left: 50%; transform: translateX(-50%); }
    .f-nav-right .f-mobile-search { display: none; }
    
    .f-hero-wrapper { height: 75vh; }
    /* Left Align for PC */
    .f-hero-content { align-items: flex-start; text-align: left; padding-left: 5%; max-width: 650px; }
    .f-hero-title { font-size: 3.2rem; }
    .f-hero-meta { justify-content: flex-start; font-size: 0.9rem;}
    .f-btn-play { max-width: 250px; }
    
    .f-trend-card { flex: 0 0 350px; }
    .f-grid { grid-template-columns: repeat(6, 1fr); gap: 20px 15px; }
    
    .f-bottom-nav { display: none; }
    body { padding-bottom: 0; }
}
