/* -------------------------------------------------------------
   DESIGN SYSTEM & VARIABLES
------------------------------------------------------------- */
:root {
    /* Color Palette */
    --primary-color: #0d9488;       /* Deep Emerald Teal */
    --primary-light: #14b8a6;
    --primary-dark: #0f766e;
    --accent-color: #f97316;        /* Neon Orange */
    --accent-hover: #ea580c;
    
    --bg-dark: #0a0f1d;             /* Midnight Blue/Black */
    --bg-card-dark: #111827;
    --bg-light: #f8fafc;            /* Slate light */
    --bg-card-light: #ffffff;
    
    --text-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    
    --win-color: #10b981;
    --loss-color: #ef4444;
    --draw-color: #6b7280;
    
    /* Fonts */
    --font-primary: 'Outfit', 'Noto Sans JP', sans-serif;
    
    /* Layout & Shadows */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Container Width */
    --max-width: 100%;
}

/* -------------------------------------------------------------
   BASE RESET
------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

button, input, select, textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition-smooth);
}

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

/* Common Layout Components */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.hidden {
    display: none !important;
}

.gradient-text {
    background: linear-gradient(135deg, #38bdf8, #f43f5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    color: var(--accent-color);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    margin-top: 8px;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* -------------------------------------------------------------
   NAVBAR (Sticky & Glassmorphism)
------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s, box-shadow 0.3s;
}

.navbar.navbar-hidden {
    transform: translateY(-100%);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: 0.05em;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-lang, #langToggle {
    display: none !important;
}

.btn-admin-nav {
    color: var(--text-muted);
    font-size: 1.25rem;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-admin-nav:hover {
    color: var(--accent-color);
    background-color: rgba(249, 115, 22, 0.1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* -------------------------------------------------------------
   ADMIN BANNER & ACTIONS
------------------------------------------------------------- */
.admin-banner {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--accent-color);
    color: white;
    z-index: 999;
    padding: 10px 24px;
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.3s ease-out;
}

.banner-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 12px;
}

.banner-left-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.storage-meter-container {
    display: inline-flex;
    align-items: center;
    font-size: 0.8em;
    gap: 8px;
    background: rgba(0, 0, 0, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
}

.banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-reset, .btn-logout {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--border-radius-sm);
    color: white;
    border: 1.5px solid white;
}

.btn-reset:hover {
    background: white;
    color: var(--accent-color);
}

.btn-logout {
    background: rgba(0, 0, 0, 0.2);
    border-color: transparent;
}

.btn-logout:hover {
    background: rgba(0, 0, 0, 0.4);
}

.btn-admin-action {
    background-color: var(--accent-color);
    color: white;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-admin-action:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admin-card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.btn-card-edit, .btn-card-delete, .btn-card-move {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-card-move {
    background-color: #4b5563;
}

.btn-card-move:hover:not(:disabled) {
    background-color: #374151;
}

.btn-card-move:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-card-edit {
    background-color: var(--primary-color);
}

.btn-card-edit:hover {
    background-color: var(--primary-dark);
}

.btn-card-delete {
    background-color: var(--loss-color);
}

.btn-card-delete:hover {
    background-color: #b91c1c;
}

/* -------------------------------------------------------------
   1. HERO SECTION (POP & Energetic Style)
------------------------------------------------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow: hidden;
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: brightness(0.65) contrast(1.1);
    animation: panHero 25s infinite alternate ease-in-out;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-dark) 5%, rgba(10, 15, 29, 0.4) 50%, rgba(10, 15, 29, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-tag {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    background-color: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    text-align: center;
}

.hero-motto {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 600px;
    font-weight: 400;
    text-align: center;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: var(--border-radius-sm);
    display: inline-block;
    box-shadow: var(--shadow-md);
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* -------------------------------------------------------------
   2. ABOUT & MESSAGE SECTION (Friendly/POP & Info)
------------------------------------------------------------- */
.about-section {
    padding: 96px 0;
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image {
    width: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.03);
}

.about-info h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.about-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .info-cards {
        grid-template-columns: 1fr;
    }
}

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card-light);
    padding: 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition-smooth);
}

.info-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.card-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.card-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Message Cards */
.messages-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.message-card {
    background-color: var(--bg-card-light);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    border-top: 6px solid var(--accent-color);
}

.message-quote {
    position: absolute;
    top: 20px;
    right: 32px;
    font-size: 5rem;
    line-height: 1;
    color: rgba(249, 115, 22, 0.08);
    font-family: serif;
}

.message-role {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.message-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.message-text {
    color: var(--text-muted);
    font-size: 1rem;
    font-style: italic;
    position: relative;
    z-index: 2;
}

/* -------------------------------------------------------------
   3. MEMBERS SECTION (Vibrant Card Grid)
------------------------------------------------------------- */
.members-section {
    padding: 96px 0;
    background-color: #f1f5f9;
}

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

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tab-btn {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 50px;
    background-color: white;
    color: var(--text-muted);
    border: 1px solid #cbd5e1;
}

.tab-btn:hover, .tab-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    margin-bottom: 80px;
}

/* Infinite Carousel for homepage members list */
.members-section .container {
    overflow: hidden; /* Hide horizontal scrollbar and overflow */
    position: relative;
}

.members-grid.single-row {
    display: flex !important; /* Force flexbox layout instead of grid */
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 24px;
    margin-bottom: 80px;
    overflow-x: auto; /* Enable manual horizontal scroll */
    scroll-snap-type: none;
    gap: 0 !important; /* Rely on margin-right on cards for spacing */
    -webkit-overflow-scrolling: touch; /* Smooth iOS momentum scrolling */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    scroll-behavior: auto !important; /* Prevent smooth scroll rewinds during loop resets */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.members-grid.single-row::-webkit-scrollbar {
    display: none;
}

.members-grid.single-row .member-card {
    flex-shrink: 0;
    width: 260px; /* Fixed card width */
    margin-right: 32px; /* Margin instead of grid gap to ensure perfect infinite loop calculation */
    scroll-snap-align: none;
    min-width: 0;
}

@media (max-width: 1200px) {
    .members-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 992px) {
    .members-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .members-grid {
        grid-template-columns: 1fr;
    }
}

.member-card {
    background-color: var(--bg-card-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.member-avatar-wrapper {
    height: 180px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05), rgba(249, 115, 22, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f1f5f9;
    font-size: 4rem;
    color: var(--primary-color);
}

.member-info-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.member-role-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 50px;
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--primary-color);
    margin-bottom: 12px;
}

.member-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.member-position {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 12px;
}

.member-voice {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--accent-color);
}

/* Testimonials / Voices */
.testimonials-container {
    background-color: var(--bg-card-light);
    border-radius: var(--border-radius-lg);
    padding: 56px;
    box-shadow: var(--shadow-md);
}

.testimonials-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 40px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding-left: 24px;
    border-left: 4px solid var(--accent-color);
}

.voice-text {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 16px;
}

.voice-author {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* -------------------------------------------------------------
   4. MATCH RESULTS SECTION (Serious & Structured Style)
------------------------------------------------------------- */
.results-section {
    padding: 96px 0;
    background-color: var(--bg-card-light);
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 56px;
}

.stat-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-bottom: 4px solid #cbd5e1;
    transition: var(--transition-smooth);
}

.stat-card.accent {
    border-bottom-color: var(--accent-color);
    background: linear-gradient(to bottom right, var(--bg-light), rgba(249, 115, 22, 0.03));
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 8px;
}

.results-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.results-actions h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-item {
    display: block;
    background-color: var(--bg-card-light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    border-left: 6px solid #cbd5e1;
    overflow: hidden;
}

.result-item:hover {
    box-shadow: var(--shadow-md);
}

/* Badge for Match Result Status */
.result-item.status-win {
    border-left-color: var(--win-color);
    background: linear-gradient(to right, rgba(16, 185, 129, 0.06) 0%, transparent 35%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.06);
}
.result-item.status-loss {
    border-left-color: var(--loss-color);
    background: linear-gradient(to right, rgba(239, 68, 68, 0.03) 0%, transparent 35%);
    opacity: 0.95;
}
.result-item.status-draw {
    border-left-color: var(--draw-color);
    background: linear-gradient(to right, rgba(107, 114, 128, 0.04) 0%, transparent 35%);
}

.result-date {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.result-info-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-title {
    font-weight: 750;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.result-details {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.result-score-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-weight: 800;
    font-size: 1.35rem;
}

.opponent-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    max-width: 140px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.score-display {
    background-color: var(--text-dark);
    color: white;
    padding: 4px 14px;
    border-radius: var(--border-radius-sm);
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.result-outcome-badge {
    text-align: right;
    font-weight: 900;
    font-size: 1rem;
}

.result-outcome-badge.outcome-win { color: var(--win-color); }
.result-outcome-badge.outcome-loss { color: var(--loss-color); }
.result-outcome-badge.outcome-draw { color: var(--draw-color); }

/* -------------------------------------------------------------
   5. SCHEDULE & CALENDAR SECTION (Serious & Structured)
------------------------------------------------------------- */
.schedule-section {
    padding: 96px 0;
    background-color: #f8fafc;
}

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

.schedule-intro {
    font-size: 1rem;
    color: var(--text-muted);
}

.schedule-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

/* Calendar Styling */
.calendar-wrapper {
    background-color: var(--bg-card-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 32px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.cal-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cal-nav-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.cal-sync-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cal-sync-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.cal-sync-btn.spinning i {
    animation: cal-spin-anim 1s linear infinite;
}

@keyframes cal-spin-anim {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.current-month {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 6px;
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-light);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
    border: 1.5px solid transparent;
}

.calendar-day:hover {
    background-color: #f1f5f9;
}

.calendar-day.prev-month, .calendar-day.next-month {
    color: #cbd5e1;
    background-color: transparent;
}

.calendar-day.today {
    background-color: rgba(13, 148, 136, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-dark);
    font-weight: 800;
}

.day-event-dots {
    display: flex;
    gap: 3px;
    margin-top: 4px;
    height: 6px;
}

.event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.event-dot.practice { background-color: var(--primary-color); }
.event-dot.match { background-color: var(--accent-color); }
.event-dot.event { background-color: #a855f7; }

/* Upcoming Events List */
.events-list-wrapper {
    background-color: var(--bg-card-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 32px;
    max-height: none !important;
}

.events-list-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 12px;
}

.events-list {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 12px;
    width: 100%;
    scrollbar-width: thin;
}

.events-list::-webkit-scrollbar {
    height: 6px;
}
.events-list::-webkit-scrollbar-track {
    background: transparent;
}
.events-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.no-events {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 24px 0;
    width: 100%;
}

.event-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius-md);
    position: relative;
    flex: 0 0 290px;
    max-width: 290px;
    box-sizing: border-box;
}

.event-list-badge {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.event-list-badge.practice { background-color: var(--primary-color); }
.event-list-badge.match { background-color: var(--accent-color); }
.event-list-badge.event { background-color: #a855f7; }

.event-list-badge .day-num {
    font-size: 1.1rem;
    line-height: 1;
}

.event-list-badge .month-lbl {
    font-size: 0.65rem;
    line-height: 1;
    text-transform: uppercase;
}

.event-list-info {
    flex-grow: 1;
}

.event-list-title-text {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.event-list-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    gap: 10px;
}

/* -------------------------------------------------------------
   FOOTER (Clean & Premium)
------------------------------------------------------------- */
.footer {
    background-color: var(--bg-dark);
    color: #94a3b8;
    padding: 64px 0 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand .logo-text {
    color: white;
}

.footer-tagline {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 8px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.social-link:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-meta-links {
    display: flex;
    gap: 24px;
}

.footer-link:hover {
    color: white;
}

/* -------------------------------------------------------------
   MODALS & FORMS (Modern overlay with blur)
------------------------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(10, 15, 29, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease-out;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    width: 100%;
    max-width: 550px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content.auth-modal {
    max-width: 420px;
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 0.5;
}

.close-modal:hover {
    color: var(--text-dark);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: #f8fafc;
    transition: var(--transition-smooth);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.score-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.score-inputs .form-group {
    flex: 1;
    margin-bottom: 0;
}

.score-dash {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    padding-top: 24px;
}

.form-error {
    color: var(--loss-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.btn-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    padding: 14px;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN (MEDIA QUERIES)
------------------------------------------------------------- */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .messages-container {
        grid-template-columns: 1fr;
    }
    
    .schedule-grid-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        position: relative;
    }
    
    .nav-menu {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: var(--shadow-md);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 16px 0;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .result-item {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    .result-date {
        grid-column: span 2;
    }
    
    .result-info-main {
        grid-column: span 2;
    }
    
    .result-score-block {
        justify-content: flex-start;
    }
    
    .result-outcome-badge {
        text-align: left;
    }
    
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* -------------------------------------------------------------
   ANIMATIONS
------------------------------------------------------------- */
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes panHero {
    0% { transform: scale(1.05) translate(0, 0); }
    100% { transform: scale(1.08) translate(-1%, -1%); }
}

/* ============================================================================
   ADDED CUSTOM STYLES (Gallery, Player Photos, Lightbox, Previews)
   ============================================================================ */

/* Member Card Custom Image */
.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gallery Section */
.gallery-section {
    padding: 96px 0;
    background-color: var(--bg-light);
}

.gallery-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 32px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-card {
    background-color: var(--bg-card-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.gallery-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-card:hover .gallery-image-wrapper img {
    transform: scale(1.05);
}

.gallery-card-body {
    padding: 16px 20px;
    flex-grow: 1;
}

.gallery-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
}

/* Image Preview Container inside Modals */
.image-preview-container {
    border: 2px dashed #cbd5e1;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    text-align: center;
    background-color: #f8fafc;
    margin-top: 10px;
}

.image-preview-container img {
    max-width: 100%;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

/* Lightbox Modal */
.lightbox-modal {
    display: flex; /* transition適用のために常にflex */
    position: fixed;
    z-index: 11000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 15, 29, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

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

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(0.85);
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-caption {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    max-width: 80%;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #cbd5e1;
    font-size: 3rem;
    font-weight: 300;
    transition: var(--transition-smooth);
    cursor: pointer;
    line-height: 1;
}

.close-lightbox:hover {
    color: var(--accent-color);
}

/* -------------------------------------------------------------
   MEMBER DETAIL MODAL STYLES
   ------------------------------------------------------------- */
.member-detail-content {
    max-width: 650px;
    position: relative;
    overflow: hidden;
}

.member-detail-layout {
    display: flex;
    gap: 32px;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.member-detail-avatar {
    width: 180px;
    height: 180px;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(249, 115, 22, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary-color);
    border: 1px solid #cbd5e1;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.member-detail-avatar:hover {
    transform: scale(1.04);
}

.member-detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-detail-avatar i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.member-detail-info {
    flex-grow: 1;
}

.member-detail-name {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.member-detail-role-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 50px;
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.detail-table th, .detail-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
}

.detail-table th {
    font-weight: 700;
    color: var(--text-muted);
    width: 120px;
}

.detail-table td {
    color: var(--text-dark);
    font-weight: 600;
}

.detail-goals-box {
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    padding: 16px;
    border-left: 4px solid var(--primary-color);
}

.detail-goals-box h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.detail-goals-box p {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
}

@media (max-width: 600px) {
    .member-detail-layout {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .member-detail-avatar {
        width: 150px;
        height: 150px;
    }
}

/* -------------------------------------------------------------
   QR CODE GRID STYLES
   ------------------------------------------------------------- */
.qr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.qr-card {
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    padding: 24px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.qr-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.qr-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.qr-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.qr-code-wrapper {
    background: white;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
}

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

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

@media (max-width: 576px) {
    .qr-grid {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------
   GOOGLE CALENDAR LINK BUTTON STYLES
   ------------------------------------------------------------- */
.btn-gcal-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
    background-color: transparent;
    padding: 0;
    font-weight: 500;
    transition: var(--transition-smooth);
    text-decoration: underline;
    width: fit-content;
}

.btn-gcal-link:hover {
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: underline;
}

/* -------------------------------------------------------------
   IN-PLACE CMS (CONTENTEDITABLE) STYLES
   ------------------------------------------------------------- */
body.admin-mode [contenteditable="true"] {
    outline: none;
    border-bottom: 1.5px dotted var(--primary-color);
    transition: background-color 0.25s, border-bottom-color 0.25s;
}

body.admin-mode [contenteditable="true"]:hover {
    background-color: rgba(13, 148, 136, 0.06);
    border-bottom-color: var(--accent-color);
    cursor: text;
}

body.admin-mode [contenteditable="true"]:focus {
    background-color: rgba(13, 148, 136, 0.12);
    border-bottom: 2px solid var(--accent-color);
}

/* -------------------------------------------------------------
   ADMIN FLOATING FONT SIZE TOOLBAR
   ------------------------------------------------------------- */
.admin-font-toolbar {
    position: absolute;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--primary-light);
    box-shadow: 0 10px 30px -5px rgba(13, 148, 136, 0.25), var(--shadow-md);
    border-radius: 12px;
    padding: 8px 16px;
    pointer-events: auto;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(10px) scale(0.95);
}

.admin-font-toolbar.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.admin-font-toolbar .toolbar-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-right: 1.5px solid #e2e8f0;
    padding-right: 10px;
    margin-right: 4px;
}

.admin-font-toolbar button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-dark);
    font-size: 0.8rem;
    transition: var(--transition-smooth);
}

.admin-font-toolbar button:hover {
    background: var(--primary-color);
    color: white;
}

.admin-font-toolbar .btn-font-reset {
    color: var(--accent-color);
    background: rgba(249, 115, 22, 0.1);
}

.admin-font-toolbar .btn-font-reset:hover {
    background: var(--accent-color);
    color: white;
}

.admin-font-toolbar .font-size-val {
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
    min-width: 42px;
    text-align: center;
}

/* Premium Range Slider styling */
.admin-font-toolbar input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
}

.admin-font-toolbar input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s;
}

.admin-font-toolbar input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.admin-font-toolbar input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s;
}

.admin-font-toolbar input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* -------------------------------------------------------------
   PHILOSOPHY CARD STYLES
   ------------------------------------------------------------- */
.philosophy-card {
    background-color: var(--bg-card-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 6px solid var(--primary-color);
    display: grid;
    grid-template-columns: 1fr 2fr;
    overflow: hidden;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .philosophy-card {
        grid-template-columns: 1fr;
    }
}

.philosophy-slogan-box {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05), rgba(249, 115, 22, 0.05));
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-right: 1px solid rgba(226, 232, 240, 0.8);
}

@media (max-width: 768px) {
    .philosophy-slogan-box {
        border-right: none;
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
        padding: 30px;
    }
}

.philosophy-slogan-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 0.2em;
    margin-bottom: 12px;
}

.philosophy-slogan-words {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.philosophy-slogan-words span {
    display: inline-block;
}

.philosophy-slogan-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.philosophy-content-box {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.philosophy-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.philosophy-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 1.5px;
}

.philosophy-text {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.philosophy-text:last-child {
    margin-bottom: 0;
}

/* Event Location Links (Google Maps) */
.event-loc-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.event-loc-link:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

/* Multiple Google Calendar Badge Tags */
.calendar-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 4px;
    background-color: var(--primary-light, #e0e7ff);
    color: var(--primary-color, #3b82f6);
    margin-bottom: 6px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    align-self: flex-start;
}

/* Responsive Calendar Day Text Items */
.calendar-day {
    aspect-ratio: 1.15 !important; /* 横長の長方形 (スマホ向けに文字が入る高さを維持) */
    justify-content: flex-start !important;
    align-items: stretch !important;
    padding: 3px !important;
    overflow-y: auto !important; /* Allow cell itself to scroll vertically if content overflows */
    overflow-x: hidden !important;
    scrollbar-width: thin; /* Thin scrollbar for Firefox */
    min-height: 0; /* Force grid cells to constrain height and scroll */
}

/* Custom scrollbars for calendar day container */
.calendar-day::-webkit-scrollbar {
    width: 4px;
}
.calendar-day::-webkit-scrollbar-track {
    background: transparent;
}
.calendar-day::-webkit-scrollbar-thumb {
    background: rgba(13, 148, 136, 0.45);
    border-radius: 2px;
}

.calendar-day-events {
    display: flex !important; /* Always show text events */
    width: 100%;
    margin-top: 4px;
    flex-direction: column;
    gap: 3px;
}

.calendar-day-event-item {
    display: flex;
    flex-direction: column;
    margin-top: 4px;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    text-decoration: none;
}

.event-card-header {
    padding: 2px 6px;
    font-weight: 800;
    font-size: 0.58rem;
    color: white;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    width: 100%;
}

.event-card-body {
    padding: 4px 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-sizing: border-box;
    width: 100%;
    text-align: left;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border: 1px solid transparent;
    border-top: none;
}

/* Match Event Card Colors */
.calendar-day-event-item.match .event-card-header {
    background-color: #f97316; /* Orange */
}
.calendar-day-event-item.match .event-card-body {
    background-color: #fff7ed;
    border-color: #ffedd5;
    color: #7c2d12;
}

/* Practice Event Card Colors */
.calendar-day-event-item.practice .event-card-header {
    background-color: #3b82f6; /* Blue */
}
.calendar-day-event-item.practice .event-card-body {
    background-color: #eff6ff;
    border-color: #dbeafe;
    color: #1e3a8a;
}

/* Other Event Card Colors */
.calendar-day-event-item.event .event-card-header {
    background-color: #10b981; /* Green */
}
.calendar-day-event-item.event .event-card-body {
    background-color: #ecfdf5;
    border-color: #d1fae5;
    color: #064e3b;
}

.event-title-text {
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    word-break: break-all;
}

.event-loc-text {
    font-size: 0.54rem;
    color: #64748b;
    line-height: 1.2;
    white-space: normal;
    word-break: break-all;
    margin-top: 1px;
}

.calendar-day-num {
    align-self: flex-start;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Desktop styles override for monthly calendar view */
@media (min-width: 768px) {
    .calendar-day {
        aspect-ratio: 1.5 !important; /* PC・タブレットで美しい横長の長方形に設定 */
        padding: 6px !important;
    }
    
    .calendar-day-events {
        max-height: none !important;
    }
    
    .event-card-header {
        font-size: 0.68rem;
        padding: 3px 6px;
    }
    
    .event-title-text {
        font-size: 0.72rem;
    }
    
    .event-loc-text {
        font-size: 0.64rem;
    }
    
    .calendar-day-num {
        font-size: 0.95rem;
        margin-bottom: 2px;
    }
}

/* Results Dashboard */
.results-dashboard {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--border-radius-lg, 16px);
    padding: 24px;
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,0.1));
}

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

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trend-chart-card {
        grid-column: span 2 !important;
    }
}

@media (max-width: 576px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .trend-chart-card {
        grid-column: span 1 !important;
    }
}

.db-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.db-card-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
}

.db-total-games {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 8px;
}

.db-unit {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-left: 4px;
}

.db-breakdown {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

.db-win { color: #10b981; }
.db-loss { color: #ef4444; }
.db-draw { color: #64748b; }

/* SVG progress ring */
.db-rate-container {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring-bar {
    transition: stroke-dashoffset 0.6s ease;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.db-rate-text {
    position: absolute;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-dark);
}

/* Recent Form Form badge list */
.db-form-list {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    height: 32px;
    align-items: center;
}

.form-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-badge.W { background-color: #10b981; }
.form-badge.L { background-color: #ef4444; }
.form-badge.D { background-color: #64748b; }

.db-form-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Goals card */
.db-goals {
    display: flex;
    gap: 16px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.db-goal-diff {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.db-goal-diff.plus { background-color: rgba(16, 185, 129, 0.1); color: #10b981; }
.db-goal-diff.minus { background-color: rgba(239, 68, 68, 0.1); color: #ef4444; }
.db-goal-diff.zero { background-color: #f1f5f9; color: #64748b; }

/* Position Badges Color Customization */
.member-role-badge {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.member-role-badge.badge-gk {
    background: #f97316 !important;
    color: #ffffff !important;
}

.member-role-badge.badge-df {
    background: #0284c7 !important;
    color: #ffffff !important;
}

.member-role-badge.badge-mf {
    background: #059669 !important;
    color: #ffffff !important;
}

.member-role-badge.badge-fw {
    background: #dc2626 !important;
    color: #ffffff !important;
}

.member-role-badge.badge-staff {
    background: #4b5563 !important;
    color: #ffffff !important;
}

/* News Category Tabs & Pagination Styling */
.news-tab-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-tab-btn:hover {
    background: #f8fafc;
    color: var(--primary-color);
    border-color: var(--primary-light);
}

.news-tab-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.pagination-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-light);
}

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

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f1f5f9;
}

#newsSearchInput:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Venues & Map Guide Card Styling */
.venues-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .venues-grid {
        grid-template-columns: 1fr;
    }
}

.venue-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.venue-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.venue-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.venue-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    height: 220px;
    border: 1px solid #cbd5e1;
}

/* Schedule Page Grid Layout to Stacked */
.events-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 16px !important;
}

/* -------------------------------------------------------------
   SCROLL REVEAL STYLES
   ------------------------------------------------------------- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1), transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------------------------------
   MEMBER DETAIL WATERMARK NUMBER
   ------------------------------------------------------------- */
.member-detail-bg-number {
    position: absolute;
    bottom: -32px;
    right: -16px;
    font-size: 16rem;
    font-weight: 900;
    color: rgba(249, 115, 22, 0.12); /* darker orange for visibility */
    z-index: 0;
    pointer-events: none;
    user-select: none;
    font-family: 'Impact', 'Arial Black', sans-serif;
    line-height: 1;
}

/* -------------------------------------------------------------
   BUTTON HOVER & INPUT FOCUS EFFECTS
   ------------------------------------------------------------- */
.btn-primary, .btn-submit, .btn-reset, .btn-logout, .btn-admin-action {
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-primary:hover, .btn-submit:hover, .btn-reset:hover, .btn-admin-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(13, 148, 136, 0.3) !important;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(239, 68, 68, 0.3) !important;
}

input[type="text"], input[type="password"], input[type="date"], select, textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="date"]:focus, select:focus, textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15) !important;
    outline: none;
    background-color: #ffffff !important;
}

/* -------------------------------------------------------------
   HERO CAROUSEL / SLIDER STYLES
   ------------------------------------------------------------- */
.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.06);
    filter: brightness(0.65) contrast(1.1);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.01);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 8s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--accent-color);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 15, 29, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-arrow:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    transform: translateY(-50%) scale(1.05);
}

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

@media (max-width: 768px) {
    .hero-arrow {
        display: none;
    }
}

/* -------------------------------------------------------------
   ADDITIONAL UI/UX ENHANCEMENTS (Smart Header & Typography)
   - Micro-interactions for buttons & cards
   - Sporty typography for numbers (scores, dates, jersey numbers)
------------------------------------------------------------- */

/* Card hover lift effect */
.member-card,
.gallery-card,
.profile-card,
.result-item {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.member-card:hover,
.gallery-card:hover,
.profile-card:hover,
.result-item:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--shadow-lg) !important;
}

/* Button icons hover slide */
.btn-primary,
.btn-secondary,
.btn-submit,
.btn-gcal-link,
.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary i,
.btn-secondary i,
.btn-submit i,
.btn-gcal-link i,
.btn-accent i {
    transition: transform 0.2s ease-in-out;
}

.btn-primary:hover i,
.btn-secondary:hover i,
.btn-submit:hover i,
.btn-gcal-link:hover i,
.btn-accent:hover i {
    transform: translateX(4px);
}

/* Sporty typography for numbers (scores, big dates, jersey numbers) */
.score-display {
    font-family: var(--font-primary);
    font-weight: 900 !important;
    font-size: 1.9rem !important;
    letter-spacing: -0.04em !important;
    font-style: italic;
    color: var(--primary-dark);
}

.member-detail-bg-number,
#detailMemberBgNumber {
    font-family: var(--font-primary) !important;
    font-weight: 900 !important;
    font-style: italic !important;
    letter-spacing: -0.06em !important;
}

.event-time-col span,
.event-list-badge .day-num,
.result-date {
    font-family: var(--font-primary);
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

/* Ensure result-item is block and result-summary-row is a flex container with appropriate space distribution */
.result-item {
    display: block !important;
    width: 100% !important;
}

.result-summary-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    width: 100% !important;
    padding: 20px 24px !important;
    box-sizing: border-box !important;
}

/* Accordion sliding details styles */
.result-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-light);
}

.result-item.active-accordion .accordion-icon {
    transform: rotate(180deg);
}

/* Allow the left text block to take up to 45% only, freeing up the middle space */
.result-info-main {
    flex: 1 1 30% !important;
    max-width: 45% !important;
}

/* Allow the score block to occupy up to 50% of the entire width (utilizing the empty space) */
.result-score-block {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 1 1 45% !important;
    max-width: 50% !important;
    gap: 16px !important;
    white-space: nowrap !important;
    padding-left: 10px !important;
}

.result-score-block .opponent-name {
    white-space: normal !important;
    word-break: break-all !important;
    overflow: visible !important;
    text-overflow: clip !important;
    text-align: right;
    max-width: none !important;
    font-weight: 700;
    line-height: 1.3;
    flex-grow: 1;
}

.result-score-block .score-display {
    white-space: nowrap !important;
    flex-shrink: 0; /* Never shrink or wrap the score */
}

/* Fix size of dates and badges to prevent squeeze */
.result-date {
    flex-shrink: 0 !important;
    width: 95px !important;
}
.result-outcome-badge {
    flex-shrink: 0 !important;
    width: 90px !important;
    text-align: center !important;
}

/* Force layout to not wrap on small screens */
@media (max-width: 600px) {
    .result-item {
        flex-wrap: nowrap !important;
    }
}

/* Lightbox Nav Buttons styling */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10010;
    user-select: none;
}

.lightbox-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-color, #fbbf24);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev {
    left: 24px;
}

.lightbox-nav-btn.next {
    right: 24px;
}

/* Mobile optimizations for lightbox navigation */
@media (max-width: 768px) {
    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .lightbox-nav-btn.prev {
        left: 12px;
    }
    .lightbox-nav-btn.next {
        right: 12px;
    }
}

/* Google Calendar Embed Responsive Container */
.gcal-embed-container {
    position: relative;
    padding-bottom: 70%; /* Aspect ratio for mobile visibility */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: var(--border-radius-md, 12px);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,0.1));
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #ffffff;
}

.gcal-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Landscape/Desktop media query adjustment */
@media (min-width: 992px) {
    .gcal-embed-container {
        padding-bottom: 56.25%; /* 16:9 ratio for larger desktop screens */
    }
}

/* ============================================================================
   NEWS CARD & DETAIL PAGE STYLING
============================================================================ */
.news-card-detail {
    position: relative;
    background-color: white;
    border-radius: var(--border-radius-md, 12px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.1));
    padding: 32px;
    border-top: 4px solid var(--primary-color, #0d9488);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-card-detail:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,0.1));
}

.news-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-muted, #64748b);
    font-weight: 600;
}

.news-category-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    display: inline-block;
    text-transform: uppercase;
}

/* Category Badge Colors */
.news-category-badge.category-match {
    background-color: var(--accent-color, #f97316); /* Orange */
}

.news-category-badge.category-info {
    background-color: var(--primary-color, #0d9488); /* Teal */
}

.news-category-badge.category-event {
    background-color: #a855f7; /* Purple */
}

.news-category-badge.category-other {
    background-color: #64748b; /* Slate Gray */
}

.news-title-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark, #0f172a);
    margin: 0;
    line-height: 1.4;
}

.news-content-text {
    font-size: 0.95rem;
    color: var(--text-muted, #64748b);
    line-height: 1.7;
    margin: 0;
}

/* Prevent flash of untranslated static content */
[data-i18n] {
    opacity: 0;
}
[data-i18n].translated {
    opacity: 1;
    transition: opacity 0.15s ease-in-out;
}

/* Custom Scrollbar for Match Records List */
.scrollable-list {
    max-height: 540px !important;
    overflow-y: scroll !important;
    min-height: 0 !important;
    -webkit-overflow-scrolling: touch !important;
    padding-right: 8px;
    scrollbar-width: auto;
    scrollbar-color: rgba(13, 148, 136, 0.5) rgba(0, 0, 0, 0.03);
}

.scrollable-list .result-item {
    flex-shrink: 0 !important;
}

.scrollable-list::-webkit-scrollbar {
    width: 8px;
}

.scrollable-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}

.scrollable-list::-webkit-scrollbar-thumb {
    background: rgba(13, 148, 136, 0.5);
    border-radius: 4px;
    transition: background 0.2s;
}

.scrollable-list::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 148, 136, 0.8);
}

