/*
Theme Name: 人妻スポーツ倶楽部
Theme URI: https://sports-hitozuma.com
Author: sports-hitozuma.com
Description: 人妻×スポーツのアフィリエイトサイト用ダークテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: hitozuma-sports
*/

/* ===== CSS Variables ===== */
:root {
    --primary: #F42C8F;
    --primary-hover: #D61A75;
    --bg-dark: #120B16;
    --surface-dark: #1E1224;
    --accent-dark: #2D1B36;
    --text-dark: #E5E7EB;
    --text-muted-dark: #9CA3AF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-dark);
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

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

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

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===== Layout ===== */
.site-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

@media (min-width: 640px) {
    .site-wrapper { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .site-wrapper { padding: 0 2rem; }
}

/* ===== Navigation ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(30, 18, 36, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--accent-dark);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

@media (min-width: 640px) {
    .nav-inner { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .nav-inner { padding: 0 2rem; }
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    flex-shrink: 0;
}

.site-logo .logo-icon {
    color: var(--primary);
    font-size: 1.875rem;
}

.site-logo .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #fff;
}

.site-logo .logo-text span {
    color: var(--primary);
}

.main-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .main-nav { display: flex; }
}

.main-nav a {
    font-weight: 500;
    transition: color 0.2s;
    color: var(--text-muted-dark);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.main-nav a.current {
    color: #fff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn {
    padding: 0.5rem;
    border-radius: 9999px;
    color: var(--text-muted-dark);
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background-color: var(--accent-dark);
}

/* Mobile menu toggle */
.mobile-menu-btn {
    display: flex;
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: var(--text-muted-dark);
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn { display: none; }
}

.mobile-menu {
    display: none;
    background-color: var(--surface-dark);
    border-top: 1px solid var(--accent-dark);
    padding: 1rem;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-muted-dark);
    border-radius: 0.5rem;
    transition: background-color 0.2s, color 0.2s;
}

.mobile-menu a:hover {
    background-color: var(--accent-dark);
    color: var(--primary);
}

/* ===== Main Content ===== */
.site-main {
    flex-grow: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .site-main { padding: 2rem 1.5rem; }
}

@media (min-width: 1024px) {
    .site-main {
        padding: 2rem;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    }
    .content-area { grid-column: span 8; }
    .sidebar { grid-column: span 4; }
}

/* ===== Section Header ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--accent-dark);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: #fff;
}

.section-subtitle {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-muted-dark);
}

.tab-group {
    display: flex;
    gap: 1.5rem;
}

.tab-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0 0.5rem 1rem;
    color: var(--text-muted-dark);
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
}

.tab-btn:hover:not(.active) {
    color: #fff;
}

/* ===== Video Cards ===== */
.video-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.video-card {
    position: relative;
    background-color: var(--surface-dark);
    border-radius: 1rem;
    border: 1px solid var(--accent-dark);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.video-card:hover {
    border-color: rgba(244, 44, 143, 0.3);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

@media (min-width: 640px) {
    .video-card { flex-direction: row; }
}

.video-card .rank-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.video-card .thumbnail-wrap {
    position: relative;
    overflow: hidden;
    height: 16rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .video-card .thumbnail-wrap {
        width: 40%;
        height: auto;
    }
}

.video-card .thumbnail-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-card:hover .thumbnail-wrap img {
    transform: scale(1.05);
}

.video-card .duration-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.video-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.video-card .card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.video-card .category-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.video-card .verified-badge {
    font-size: 0.75rem;
    color: var(--text-muted-dark);
}

.video-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: color 0.2s;
}

.video-card:hover .card-title {
    color: var(--primary);
}

.video-card .card-desc {
    font-size: 0.875rem;
    color: var(--text-muted-dark);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card .affiliate-link {
    display: inline-block;
    background-color: var(--accent-dark);
    font-size: 0.75rem;
    color: #f9a8d4;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: monospace;
}

.video-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.video-card .view-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted-dark);
}

.btn-watch {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-watch.primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(244, 44, 143, 0.3);
}

.btn-watch.primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-watch.secondary {
    background-color: var(--accent-dark);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-watch.secondary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ===== Sidebar ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background-color: var(--surface-dark);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--accent-dark);
}

.sidebar-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--primary);
}

/* Tags */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    padding: 0.375rem 0.75rem;
    background-color: var(--accent-dark);
    color: #d1d5db;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}

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

/* New Arrivals */
.new-arrivals-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.new-arrival-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: opacity 0.2s;
}

.new-arrival-item:hover {
    opacity: 0.8;
}

.new-arrival-thumb {
    width: 5rem;
    height: 5rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.new-arrival-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.new-arrival-item:hover .new-arrival-thumb img {
    transform: scale(1.1);
}

.new-arrival-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.new-arrival-item:hover .new-arrival-info h4 {
    color: var(--primary);
}

.new-arrival-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted-dark);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sidebar-view-all {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    transition: text-decoration 0.2s;
}

.sidebar-view-all:hover {
    text-decoration: underline;
}

/* Premium Banner */
.premium-banner {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    height: 16rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    cursor: pointer;
}

.premium-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
}

.premium-banner h4 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.premium-banner p {
    color: #e5e7eb;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.btn-premium {
    background-color: var(--primary);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-premium:hover {
    background-color: var(--primary-hover);
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--surface-dark);
    border-top: 1px solid var(--accent-dark);
    margin-top: auto;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        padding: 2rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .footer-inner { padding: 2rem; }
}

.footer-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.footer-logo-text span {
    color: var(--primary);
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--text-muted-dark);
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted-dark);
}

.footer-links a:hover {
    color: var(--primary);
}

/* ===== Category Page ===== */
.category-hero {
    background: linear-gradient(135deg, var(--surface-dark), var(--accent-dark));
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--accent-dark);
}

.category-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.category-hero p {
    color: var(--text-muted-dark);
    font-size: 0.875rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .category-grid { grid-template-columns: repeat(6, 1fr); }
}

.category-card {
    background-color: var(--surface-dark);
    border: 1px solid var(--accent-dark);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: border-color 0.2s, background-color 0.2s;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--primary);
    background-color: rgba(244, 44, 143, 0.05);
}

.category-card .cat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.category-card .cat-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.category-card .cat-count {
    font-size: 0.75rem;
    color: var(--text-muted-dark);
}

/* ===== Single Post / Video Detail Page ===== */
.video-detail-hero {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: var(--surface-dark);
    border: 1px solid var(--accent-dark);
}

.video-detail-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    filter: blur(2px) brightness(0.5);
}

.video-detail-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.play-btn-large {
    width: 5rem;
    height: 5rem;
    background-color: var(--primary);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(244, 44, 143, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}

.play-btn-large:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(244, 44, 143, 0.7);
}

.play-btn-large .material-icons-round {
    font-size: 2.5rem;
    color: #fff;
}

.cta-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    box-shadow: 0 4px 20px rgba(244, 44, 143, 0.4);
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.cta-watch-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(244, 44, 143, 0.5);
}

.video-detail-info {
    background-color: var(--surface-dark);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--accent-dark);
    margin-bottom: 1.5rem;
}

.video-detail-info .detail-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.video-detail-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.video-detail-info .detail-desc {
    color: var(--text-muted-dark);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.detail-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted-dark);
    margin-bottom: 1.5rem;
}

.detail-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.affiliate-cta-box {
    background: linear-gradient(135deg, rgba(244, 44, 143, 0.15), rgba(244, 44, 143, 0.05));
    border: 1px solid rgba(244, 44, 143, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.affiliate-cta-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.affiliate-cta-box p {
    color: var(--text-muted-dark);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.related-videos-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--primary);
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background-color: var(--surface-dark);
    border: 1px solid var(--accent-dark);
    color: var(--text-muted-dark);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* ===== WordPress Specific ===== */
.wp-pagenavi {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.wp-pagenavi a,
.wp-pagenavi span {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background-color: var(--surface-dark);
    border: 1px solid var(--accent-dark);
    color: var(--text-muted-dark);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.wp-pagenavi a:hover,
.wp-pagenavi span.current {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===== Utility ===== */
.material-icons-round {
    font-family: 'Material Icons Round';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}
