@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700;900&family=Outfit:wght@400;700;900&display=swap');

:root {
    --accent:      #fbbf24;  /* Gold */
    --accent-dim:  #fbbf2433;
    --bg-main:     #fdf2f8;  /* Pink-50 */
    --bg-card:     #ffffff;  
    --bg-elevated: #fff;
    --border:      rgba(251, 191, 36, 0.3);
    --text-primary:#1e293b;
    --text-muted:  #64748b;
    --font-main:   'Noto Serif JP', serif;
    --font-num:    'Outfit', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
.container { 
    max-width: 1240px; 
    width: 100%; 
    margin: 0 auto; 
    padding: 0 1.5rem; 
    box-sizing: border-box; 
    position: relative;
}

/* Global Navbar */
.global-navbar {
    position: sticky; top: 0; left: 0; right: 0; z-index: 9000;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { font-family: var(--font-num); font-size: 1.5rem; font-weight: 300; color: #1e293b; }
.navbar-brand span { color: var(--accent); font-style: italic; }

/* Hero */
.portal-hero {
    position: relative; padding: 4rem 0 3rem; text-align: center;
    background: #fff; border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.huge-logo {
    font-family: var(--font-num); font-size: 3rem; font-weight: 300; letter-spacing: -0.02em;
    color: #1e293b; display: inline-block; margin-bottom: 1rem;
}
.huge-logo span { color: var(--accent); font-style: italic; }
.search-form-container { max-width: 600px; margin: 0 auto 2rem; display: flex; gap: 0.5rem; }
.search-form-container input {
    flex: 1; padding: 0.8rem 1.5rem; border-radius: 999px; border: 1px solid var(--border);
    background: #fdf2f8; outline: none; font-size: 0.9rem;
}
.search-form-container button {
    background: var(--accent); color: #fff; border: none; padding: 0.8rem 2rem;
    border-radius: 999px; font-weight: bold; cursor: pointer;
}

/* Brand Navigation Scroll (Updated for responsiveness and wrapping) */
.section-sub-title { font-size: 0.9rem; font-weight: 900; color: #1e293b; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
.section-sub-title::before { content: ""; width: 4px; height: 16px; background: var(--accent); border-radius: 2px; }

.brand-nav-scroll { 
    width: 100%; 
    margin-bottom: 3.5rem;
}
.brand-nav-inner { 
    display: flex; 
    flex-wrap: wrap; /* Changed to allow linking with window size (wrapping) */
    gap: 0.75rem;
}
.brand-nav-chip { 
    display: inline-block; padding: 0.6rem 1.4rem; background: #fff; border: 1px solid var(--border); 
    border-radius: 999px; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); 
    text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    white-space: nowrap; box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.brand-nav-chip:hover { 
    border-color: var(--accent); 
    color: var(--accent); 
    background: #fffef2; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15); 
}

/* Video Grid */
.video-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 4rem;
}
@media (max-width: 1024px) { .video-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (max-width: 768px) { .video-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; } }
@media (max-width: 480px) { .video-grid { grid-template-columns: 1fr; } }

/* Video Card (Adapted to Light/Pink theme) */
.video-card { 
    display: flex; flex-direction: column; background: #fff; 
    border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; 
    transition: all 0.3s; height: 100%; box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.video-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 15px 30px rgba(251, 191, 36, 0.15); }

.thumbnail-wrapper { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #fdf2f8; overflow: hidden; }
.thumbnail-link { display: block; width: 100%; height: 100%; }
.thumbnail-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.video-card:hover .thumbnail-img { transform: scale(1.05); }

.badge-content-id { position: absolute; top: 0.5rem; left: 0.5rem; background: rgba(255,255,255,0.9); color: var(--accent); font-size: 0.6rem; font-weight: 900; padding: 0.2rem 0.5rem; border-radius: 0.5rem; border: 1px solid var(--border); }

.card-content { padding: 1rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-size: 0.85rem; font-weight: 800; color: #1e293b; line-height: 1.4; height: 2.8em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 0.75rem; transition: color 0.3s; }
.video-card:hover .card-title { color: var(--accent); }

.card-genres { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 1rem; height: 1.5rem; overflow: hidden; }
.card-genre-tag { font-size: 0.6rem; background: #fdf2f8; color: var(--text-muted); padding: 0.2rem 0.5rem; border-radius: 0.4rem; transition: all 0.2s; font-weight: bold; border: 1px solid #fbcfe8; }
.card-genre-tag:hover { color: #fff; background: var(--accent); border-color: var(--accent); }

.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 0.75rem; border-top: 1px solid #fbcfe8; }
.card-actress-link { display: flex; align-items: center; gap: 0.4rem; }
.actress-avatar { width: 20px; height: 20px; border-radius: 50%; background: #fdf2f8; color: var(--accent); font-size: 0.6rem; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); font-weight: 800; }
.actress-name { font-size: 0.7rem; color: var(--text-muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80px; transition: color 0.3s; }
.card-actress-link:hover .actress-name { color: var(--accent); }

.card-cta { display: flex; align-items: center; gap: 0.25rem; font-size: 0.65rem; font-weight: 900; color: var(--accent); text-transform: uppercase; }
.card-cta svg { width: 0.75rem; height: 0.75rem; transition: transform 0.3s; }
.card-cta:hover svg { transform: translateX(2px); }

/* Footer */
.site-footer {
    background: #fff; border-top: 1px solid var(--border); padding: 3rem 0; margin-top: 4rem; text-align: center;
}

/* Responsive refinements for window size link */
@media (max-width: 768px) {
    .huge-logo { font-size: 2.2rem; }
    .portal-hero { padding: 3rem 0 2rem; }
    .brand-nav-chip { padding: 0.5rem 1.2rem; font-size: 0.7rem; }
    .section-sub-title { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .huge-logo { font-size: 1.8rem; }
    .search-form-container { flex-direction: column; width: 100%; border-radius: 1rem; }
    .search-form-container input { border-radius: 999px; width: 100%; }
    .search-form-container button { border-radius: 999px; width: 100%; padding: 0.7rem; }
    .brand-nav-inner { gap: 0.5rem; justify-content: center; } /* More "button-like" on small screens */
}
