/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff2d78;
    --primary-light: #ff6ba8;
    --primary-dark: #c41057;
    --accent: #9b5df5;
    --accent-light: #c49af8;
    --bg: #05050f;
    --bg-light: #0a0a1e;
    --bg-card: #111128;
    --bg-card-hover: #18182e;
    --text: #e2e8f0;
    --text-muted: #8892a4;
    --text-heading: #f8fafc;
    --border: #1e1e38;
    --success: #10b981;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-y: scroll; /* スクロールバーを常に確保してレイアウトシフトを防ぐ */
}

body {
    font-family:
        "Noto Sans JP",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    background: var(--bg);
    background-image:
        radial-gradient(
            ellipse at 15% 15%,
            rgba(155, 93, 245, 0.09) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse at 85% 80%,
            rgba(255, 45, 120, 0.07) 0%,
            transparent 55%
        );
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 5, 15, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 45, 120, 0.2);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 900;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 45, 120, 0.4);
}

@keyframes logo-shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.logo-text {
    background: linear-gradient(
        135deg,
        #ffb3d9 0%,
        #ff2d78 25%,
        #9b5df5 50%,
        #ff2d78 75%,
        #ffb3d9 100%
    );
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logo-shimmer 5s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 45, 120, 0.35));
}

.logo:hover .logo-text {
    filter: drop-shadow(0 0 18px rgba(255, 45, 120, 0.7));
}

.nav-list {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-heading);
    background: var(--bg-light);
}

.nav-link.active {
    color: var(--primary-light);
}

/* Xバズりランキング — 特別バッジスタイル */
@keyframes buzz-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 45, 120, 0);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(255, 45, 120, 0.18);
    }
}

.nav-link-buzz {
    padding: 7px 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff !important;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    animation: buzz-pulse 2.8s ease-in-out infinite;
    transition: var(--transition);
}

.nav-link-buzz:hover,
.nav-link-buzz.active {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff !important;
    background-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 45, 120, 0.5) !important;
    animation: none;
}

/* モバイルナビ内でも同スタイルを適用 */
.mobile-nav .nav-link-buzz {
    display: inline-block;
    margin: 8px 0;
    border: none;
}

.nav-link-shorts {
    padding: 7px 14px;
    background: linear-gradient(135deg, #7c3aed, var(--accent));
    color: #fff !important;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: var(--transition);
}

.nav-link-shorts:hover,
.nav-link-shorts.active {
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(155, 93, 245, 0.5) !important;
}

.mobile-nav .nav-link-shorts {
    display: inline-block;
    margin: 8px 0;
    border: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    display: flex;
    min-height: 400px;
    align-items: center;
    padding: 90px 0 30px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse at 20% 50%,
            rgba(255, 45, 120, 0.14) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse at 80% 20%,
            rgba(155, 93, 245, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse at 50% 80%,
            rgba(255, 45, 120, 0.07) 0%,
            transparent 40%
        );
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.3;
    color: var(--text-heading);
    margin-bottom: 16px;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.search-box {
    display: flex;
    max-width: 540px;
    margin: 0 auto 24px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 45, 120, 0.18);
}

.search-box-page {
    max-width: 600px;
    margin: 20px auto 0;
}

.search-input {
    flex: 1;
    padding: 14px 24px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.hero-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== Sections ===== */
.section {
    padding: 40px 0;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-heading);
    margin-bottom: 20px;
    text-align: center;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.section-header .section-title {
    margin-bottom: 0;
    text-align: left;
}

.section-link {
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.section-link:hover {
    color: var(--accent);
}

/* ===== Categories ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 45, 120, 0.45);
    transform: translateY(-4px);
    box-shadow:
        0 16px 48px rgba(255, 45, 120, 0.12),
        0 0 0 1px rgba(255, 45, 120, 0.2);
}

.category-icon {
    margin-bottom: 14px;
    color: var(--primary-light);
}

.category-icon svg {
    margin: 0 auto;
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.category-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== Items Grid ===== */
.items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.items-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.item-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: block;
}

.item-card:hover {
    border-color: rgba(255, 45, 120, 0.45);
    transform: translateY(-4px);
    box-shadow:
        0 16px 48px rgba(255, 45, 120, 0.12),
        0 0 0 1px rgba(255, 45, 120, 0.2);
}

.item-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    background: var(--bg-light);
    overflow: hidden;
}

.item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-placeholder-card {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-card));
    color: var(--text-muted);
}

.rank-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 900;
    color: #fff;
    z-index: 2;
    background: var(--bg-card);
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    color: #000;
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #d97706, #b45309);
}

.rating-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #f59e0b;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
}

.item-info {
    padding: 14px;
}

.item-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.item-actress {
    font-size: 0.8rem;
    color: var(--primary-light);
    margin-bottom: 6px;
}
.item-actress-link {
    color: var(--primary-light);
    text-decoration: none;
}
.item-actress-link:hover {
    text-decoration: underline;
}

.item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.item-maker {
    font-size: 0.72rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6ee7b7;
    white-space: nowrap;
}

/* ===== Content Grid (Category Page) ===== */
.content-grid {
    padding: 32px 0 48px;
}

/* ===== Releases Slider ===== */
.releases-slider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .releases-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

.release-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: block;
}

.release-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.release-thumb {
    width: 100%;
    aspect-ratio: 3 / 2;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-card));
}

.release-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.release-thumb .thumb-placeholder-card {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.release-new-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 4px;
}

.release-info {
    padding: 14px;
}

.release-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.release-actress {
    font-size: 0.82rem;
    color: var(--primary-light);
}

.release-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== Ranking Full Page ===== */
.ranking-list-full {
    padding: 24px 0;
}

.ranking-item-full {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.ranking-item-full:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.rank-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-muted);
    background: var(--bg-light);
    flex-shrink: 0;
}

.rank-number.rank-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
}

.rank-number.rank-2 {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    color: #000;
}

.rank-number.rank-3 {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
}

.ranking-item-thumb {
    width: 80px;
    height: 110px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-light);
}

.ranking-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-item-thumb img.actress-face-img {
    object-fit: cover;
    object-position: top center;
    border-radius: 4px;
}

.ranking-item-thumb .thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.ranking-item-info {
    flex: 1;
    min-width: 0;
}

.ranking-item-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.meta-tag {
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.meta-tag.actress {
    background: rgba(255, 45, 120, 0.15);
    color: var(--primary-light);
}

.meta-tag.maker {
    background: transparent;
    color: var(--text-muted);
}

.meta-rating {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f59e0b;
}

.item-genres {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.genre-tag {
    padding: 2px 8px;
    background: var(--bg-light);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.ranking-item-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.detail-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
}

.detail-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(255, 45, 120, 0.5);
}

.price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #6ee7b7;
}

/* ===== Filter Bar ===== */
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.filter-bar-center {
    justify-content: center;
}

.filter-count {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tab-btn {
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.tab-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 40px 0;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--text);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===== Search Meta ===== */
.search-meta {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.result-count {
    color: var(--primary-light);
    font-weight: 700;
}

.search-suggestions {
    padding: 40px 0;
}

.search-suggestions h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 24px;
    text-align: center;
}

/* ===== Benefits ===== */
.benefits-section {
    background: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    transition: var(--transition);
}

.benefit-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.benefit-number {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
    line-height: 1;
}

.benefit-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== FAQ ===== */
.faq-section {
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    color: var(--text-heading);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-light);
}

.faq-toggle {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
    color: var(--primary-light);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.35s ease,
        padding 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== Page Header ===== */
.page-header {
    padding: 110px 0 36px;
    text-align: center;
    background: var(--bg-light);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-heading);
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
    padding: 50px 0 24px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 14px;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 14px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ===== Mobile Nav ===== */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.mobile-nav-overlay.active {
    display: block;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-light);
    z-index: 1001;
    transition: var(--transition);
    padding: 80px 24px 24px;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover {
    color: var(--primary-light);
}

/* ===== Empty State ===== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state p {
    margin-bottom: 8px;
}

/* ===== Setup Notice ===== */
.setup-notice {
    padding: 16px 0;
    background: rgba(155, 93, 245, 0.08);
    border-top: 1px solid rgba(155, 93, 245, 0.25);
}

.setup-notice p {
    font-size: 0.85rem;
    color: var(--accent);
    text-align: center;
}

.setup-notice code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
}

/* ===== VR Section ===== */
.vr-section {
    background: var(--bg-light);
}

.vr-section .item-thumb,
.category-vr .item-thumb {
    aspect-ratio: 1 / 1;
}

.category-portrait .item-thumb {
    aspect-ratio: 2 / 3;
}

.category-dvd .item-thumb {
    aspect-ratio: 2 / 3;
}

/* ===== Category Links ===== */
.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-link-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.category-link-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ===== Genre Grid ===== */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.genre-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
}

.genre-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.genre-intro {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem;
    line-height: 1.6;
}

.back-link {
    text-align: center;
    margin: 2rem 0;
}

.back-link a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
}

.back-link a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .genre-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
    }

    .genre-card {
        padding: 0.7rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* ===== Actress ===== */
.actress-search-form {
    margin-bottom: 1rem;
}

.search-submit-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.search-submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.search-result-info {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.filter-bar-wrap {
    flex-wrap: wrap;
}

.actress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.actress-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
    text-align: center;
}

.actress-card:hover {
    border-color: rgba(255, 45, 120, 0.45);
    transform: translateY(-3px);
    box-shadow:
        0 12px 32px rgba(255, 45, 120, 0.12),
        0 0 0 1px rgba(255, 45, 120, 0.2);
}

.actress-thumb {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: var(--bg-light);
    flex-shrink: 0;
}

.actress-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.actress-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.actress-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.actress-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-heading);
}

.actress-ruby {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Actress Profile */
.actress-profile {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.actress-profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-light);
}

.actress-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.actress-profile-left {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.actress-profile-details {
    min-width: 0;
}

.actress-profile-similar {
    width: 290px;
    flex-shrink: 0;
    border-left: 1px solid var(--border);
    padding-left: 1.5rem;
}

.actress-profile-similar-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.actress-profile-similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 6px;
}

.actress-profile-details h2 {
    font-size: 1.5rem;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
}

.actress-profile-details .actress-ruby {
    margin-bottom: 1rem;
    display: block;
}

.actress-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.spec-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 4px 12px;
    border-radius: 20px;
}

.actress-work-count {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 600;
}

@media (max-width: 768px) {
    .actress-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.75rem;
    }

    .actress-thumb {
        width: 80px;
        height: 80px;
    }

    .actress-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }

    .actress-profile-image {
        width: 140px;
        height: 140px;
    }

    .actress-profile-left {
        width: 100%;
    }

    .actress-profile-similar {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 1rem;
    }

    .actress-profile-similar-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .actress-specs {
        justify-content: center;
    }

    .filter-bar-wrap {
        white-space: normal;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-range {
        flex-wrap: wrap;
    }
}

/* Actress Filter Form */
.filter-form {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-heading);
}

.filter-select {
    padding: 10px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    appearance: auto;
}

.filter-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-input-sm {
    width: 80px;
    padding: 10px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
}

.filter-input-sm:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-age-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-age-chip {
    display: inline-block;
    padding: 7px 14px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-light);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.filter-age-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-age-chip.active,
.filter-age-chip:has(input:checked) {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.filter-age-chip input[type="radio"] {
    display: none;
}

.filter-range span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.filter-group-btn {
    justify-content: flex-end;
}

.filter-submit-btn {
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.filter-submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

/* Actress Ranking */
.actress-grid-ranking {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.actress-card-ranking {
    position: relative;
}

.actress-card-ranking .actress-thumb {
    width: 120px;
    height: 120px;
}

.actress-rank-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 900;
    color: #fff;
    background: var(--bg-card);
    z-index: 2;
}

.actress-rank-badge.rank-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
}

.actress-rank-badge.rank-2 {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    color: #000;
}

.actress-rank-badge.rank-3 {
    background: linear-gradient(135deg, #d97706, #b45309);
}

.actress-thumb-square {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-sm);
}

.actress-spec-badge {
    font-size: 0.72rem;
    color: var(--accent);
    margin-top: 2px;
}

@media (max-width: 768px) {
    .actress-grid-ranking {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}


/* ===== Mobile Ads ===== */
.mobile-ad {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    text-align: center;
    background: rgba(0,0,0,0.5);
    padding: 4px 0;
}
@media (max-width: 768px) {
    .mobile-ad { display: block; }
    main { padding-bottom: 0; }
    .pre-footer-ad { padding-bottom: 110px; }
}



.d-pc { display: inline; }
.d-mobile { display: none; }
@media (max-width: 768px) {
    .d-pc { display: none; }
    .d-mobile { display: inline; }
}

/* ===== Side Ads ===== */
.side-ad {
    display: none;
}

@media (min-width: 1440px) {
    .side-ad {
        display: block;
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        z-index: 50;
    }

    .side-ad-left {
        left: calc((100vw - 1200px) / 2 - 320px);
    }

    .side-ad-right {
        right: calc((100vw - 1200px) / 2 - 320px);
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-visible {
    animation: fadeInUp 0.5s ease forwards;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .items-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .items-grid.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .ranking-item-full {
        padding: 16px;
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.9rem;
    }

    .hero {
        min-height: 340px;
        padding: 80px 0 20px;
    }

    .section {
        padding: 32px 0;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .items-grid,
    .items-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .search-box {
        flex-direction: column;
        border-radius: var(--radius);
    }

    .search-input {
        padding: 12px 18px;
    }

    .search-btn {
        border-radius: 0;
        padding: 12px;
    }

    .ranking-item-full {
        flex-wrap: wrap;
        gap: 12px;
    }

    .ranking-item-thumb {
        width: 60px;
        height: 84px;
    }

    .ranking-item-action {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }

    .filter-bar {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 12px;
    }

    .category-card {
        padding: 20px 14px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .items-grid,
    .items-grid.cols-3 {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .item-info {
        padding: 10px;
    }

    .item-title {
        font-size: 0.82rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ranking-item-info h3 {
        font-size: 0.88rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    padding: 8px 0 16px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: var(--text-muted, #888);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--primary, #e63946);
}

.breadcrumb-item span[aria-current="page"] {
    color: var(--text, #ccc);
}

.breadcrumb-sep {
    color: var(--text-muted, #888);
    margin: 0 2px;
    font-size: 0.9rem;
}

/* ===== Sample Preview Modal ===== */
.item-card-clickable {
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background 0.25s ease;
    z-index: 3;
}

.play-overlay svg {
    width: 48px;
    height: 48px;
    color: #fff;
    opacity: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
    transform: scale(0.85);
}

.item-card-clickable:hover .play-overlay {
    background: rgba(0, 0, 0, 0.45);
}

.item-card-clickable:hover .play-overlay svg {
    opacity: 1;
    transform: scale(1);
}

/* ===== Hover Video Preview ===== */
.hover-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    background: #000;
}
.hover-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none; /* クリック・ホバーUI非表示 */
}
/* Chromeのビデオオーバーレイを非表示 */
.hover-video-wrap video::-webkit-media-controls {
    display: none !important;
}
.hover-video-wrap video::-webkit-media-controls-enclosure {
    display: none !important;
}
.hover-video-wrap.visible {
    opacity: 1;
}

.sample-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.sample-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sample-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95) translateY(12px);
    transition: transform 0.2s ease;
}

.sample-modal-overlay.active .sample-modal {
    transform: scale(1) translateY(0);
}

.sample-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}

.sample-modal-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.sample-modal-player {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    padding-top: 65%;
}

.sample-modal-player iframe {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    top: -15%;
    height: 125%;
    display: block;
}

.sample-modal-info {
    padding: 16px 20px 20px;
}

.sample-modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.4;
    margin-bottom: 6px;
    padding-right: 40px;
}

.sample-modal-actress {
    font-size: 0.85rem;
    color: rgb(156, 163, 175);
    margin-bottom: 14px;
}

.sample-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.sample-modal-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #6ee7b7;
}

.sample-modal-btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.sample-modal-btn:hover {
    background: var(--primary-dark);
}

@media (max-width: 480px) {
    .sample-modal-info {
        padding: 12px 14px 16px;
    }
    .sample-modal-title {
        font-size: 0.9rem;
    }
    .sample-modal-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .sample-modal-btn {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   Static Pages (Privacy / Contact)
   ======================================== */
.static-page {
    max-width: 800px;
    margin: 2rem auto 4rem;
    padding: 0 1rem;
}

.static-page-updated {
    color: var(--text-muted, #9ca3af);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.static-section {
    margin-bottom: 2.5rem;
}

.static-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    border-left: 4px solid var(--accent, #e53e3e);
    padding-left: 0.75rem;
    margin-bottom: 1rem;
    color: #fff;
}

.static-section p {
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.static-list {
    color: #d1d5db;
    line-height: 1.8;
    padding-left: 1.5rem;
    list-style: disc;
}

.static-list li {
    margin-bottom: 0.4rem;
}

.contact-x-link {
    margin: 2rem 0;
    text-align: center;
}

.btn-x-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #000;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.9rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    border: 1px solid #333;
    transition: background 0.2s;
}

.btn-x-contact:hover {
    background: #1a1a1a;
}

.x-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ===== Shorts (TikTok風ショートビュー) ===== */
.shorts-wrapper {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: #000;
}

.shorts-scroll {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.shorts-scroll::-webkit-scrollbar {
    display: none;
}

.shorts-item {
    position: relative;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    background: #000;
}

/* Edge vignette for cinematic feel */
.shorts-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(
        ellipse at center,
        transparent 45%,
        rgba(0, 0, 0, 0.55) 100%
    );
    pointer-events: none;
}

/* Blurred background */
.shorts-bg {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.5) saturate(1.5);
    transform: scale(1.08);
    pointer-events: none;
}

/* Player box — 16:9, centered */
.shorts-player-wrap {
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    /* 0.82 係数: ノートPC(768px)でも上にはみ出さないサイズ */
    width: min(100%, calc((100vh - 64px) * 16 / 9 * 0.82));
    max-width: 1200px;
}

.shorts-player-box {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    box-shadow:
        0 0 80px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.shorts-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: calc(100% + 40px);
    transform: translateY(-40px);
    border: none;
}

/* Thumbnail placeholder — shimmer loading */
@keyframes shorts-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shorts-thumb-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #111 25%, #1e1e1e 50%, #111 75%);
    background-size: 200% 100%;
    animation: shorts-shimmer 1.8s infinite linear;
}

.shorts-thumb-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
}

.shorts-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.shorts-play-icon svg {
    width: 56px;
    height: 56px;
    color: rgba(255, 255, 255, 0.85);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

/* Info overlay */
.shorts-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 90px 160px 28px 24px; /* right padding avoids overlap with CTA button */
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.5) 55%,
        transparent 100%
    );
    pointer-events: none;
}

.shorts-title-text {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.45;
    margin-bottom: 8px;
    padding-left: 10px;
    border-left: 3px solid var(--primary);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}


.shorts-price-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 12px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.shorts-cta-btn {
    position: absolute;
    bottom: 28px;
    right: 14px;
    z-index: 15;
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff6b9d 100%);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(255, 45, 120, 0.55);
    transition:
        box-shadow 0.2s,
        transform 0.15s;
}

.shorts-cta-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 28px rgba(255, 45, 120, 0.75);
}

/* Counter bar */
.shorts-counter-bar {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    pointer-events: none;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.shorts-counter-sep {
    margin: 0 2px;
    opacity: 0.5;
}

/* Navigation buttons (right side) */
.shorts-nav-btns {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shorts-nav-up,
.shorts-nav-down {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.2s,
        transform 0.15s,
        box-shadow 0.2s;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.shorts-nav-up:hover,
.shorts-nav-down:hover {
    background: rgba(255, 45, 120, 0.55);
    border-color: rgba(255, 45, 120, 0.5);
    transform: scale(1.12);
    box-shadow: 0 4px 16px rgba(255, 45, 120, 0.4);
}

.shorts-nav-up:disabled,
.shorts-nav-down:disabled {
    opacity: 0.2;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.shorts-nav-up svg,
.shorts-nav-down svg {
    width: 18px;
    height: 18px;
}

/* Empty state */
.shorts-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    gap: 16px;
    font-size: 1rem;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .shorts-wrapper {
        /* use dynamic viewport height to exclude browser chrome on iOS */
        top: 56px;
        bottom: 0;
    }

    /* アイテムはラッパーに合わせる（100dvhではラッパーからはみ出す） */
    .shorts-item {
        height: 100%;
    }

    .shorts-player-wrap {
        width: 100%;
        /* 動画の中心を下げて下部を大きく見せる */
        top: 42%;
    }

    .shorts-player-box {
        /* iframeの下端をもう少し見せるため縦比率を大きく */
        padding-bottom: 63%;
    }

    .shorts-nav-btns {
        right: 8px;
        top: 42%;
    }

    .shorts-counter-bar {
        right: 8px;
    }

    /* 情報パネル: 画面下部オーバーレイ */
    .shorts-info-overlay {
        position: absolute;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10;
        padding: 70px 14px 14px;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.92) 0%,
            rgba(0, 0, 0, 0.55) 65%,
            transparent 100%
        );
        pointer-events: auto;
    }
}

.text-yellow-400 { color: #f59e0b; }

/* ===== Similar Actresses Strip ===== */
.similar-actresses-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.similar-actresses-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.similar-actresses-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}

.similar-actresses-scroll::-webkit-scrollbar {
    display: none;
}

.similar-actress-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-primary);
    min-width: 0;
}

.similar-actress-chip:hover .similar-actress-chip-thumb {
    border-color: rgba(255, 45, 120, 0.6);
}

.similar-actress-chip:hover span {
    color: var(--accent);
}

.similar-actress-chip-thumb {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--bg-light);
    transition: border-color 0.15s;
}

.similar-actress-chip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-actress-chip span {
    font-size: 0.7rem;
    text-align: center;
    line-height: 1.2;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color 0.15s;
}

/* ===== Actress Show Layout (main + sidebar) ===== */
.actress-show-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.actress-show-main {
    flex: 1;
    min-width: 0;
}

.actress-show-sidebar {
    width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.actress-show-sidebar .sidebar-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.actress-show-sidebar .sidebar-actress-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.actress-show-sidebar .sidebar-actress-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.15s;
}

.actress-show-sidebar .sidebar-actress-item:hover {
    background: var(--bg-light);
}

.actress-show-sidebar .sidebar-actress-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-light);
}

.actress-show-sidebar .sidebar-actress-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.actress-show-sidebar .sidebar-actress-name {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 960px) {
    .actress-show-layout {
        flex-direction: column;
    }

    .actress-show-sidebar {
        width: 100%;
        position: static;
    }

    .actress-show-sidebar .sidebar-actress-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .actress-show-sidebar .sidebar-actress-item {
        flex-direction: column;
        text-align: center;
        width: 80px;
        padding: 8px 4px;
        gap: 4px;
    }

    .actress-show-sidebar .sidebar-actress-thumb {
        width: 56px;
        height: 56px;
    }
}
.aspect-\[3\/2\] { aspect-ratio: 3 / 2; }

/* 視聴履歴バッジ */
.history-type-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    pointer-events: none;
}

/* ヘッダー お気に入りアイコン */
.nav-fav-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0 4px;
    transition: color 0.2s;
    line-height: 1;
}
.nav-fav-icon:hover,
.nav-fav-icon.active {
    color: #e91e8c;
}

/* お気に入り女優ボタン */
.fav-actress-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.fav-actress-btn:hover {
    border-color: #e91e8c;
    color: #e91e8c;
}
.fav-actress-btn--active {
    background: #e91e8c22;
    border-color: #e91e8c;
    color: #e91e8c;
}

/* おすすめ掲示板バナー */
.recommend-banner {
    display: block;
    background: linear-gradient(135deg, #1a1a2e, #2d1b3d);
    border: 1px solid #e91e8c44;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    color: #e91e8c;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1.25rem;
    transition: border-color 0.2s, background 0.2s;
}
.recommend-banner:hover {
    border-color: #e91e8c;
    background: linear-gradient(135deg, #1f1f3a, #3d1f4d);
}

/* MGS card */
.mgs-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e91e8c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    pointer-events: none;
    z-index: 3;
}

.mgs-btn {
    display: inline-block;
    background: #e91e8c;
    color: #fff !important;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.mgs-btn:hover { background: #c2185b; }

.affiliate-btn { display: block; width: 100%; }
@media (min-width: 768px) { .affiliate-btn { display: inline-block; width: 40%; } }
