/* ===== CSS変数とリセット ===== */
:root {
    /* Valorantカラーパレット */
    --valorant-red: #ff4654;
    --valorant-blue: #00d4ff;
    /* Team dot overrides (easy to tweak) */
    --team-red: #ff4654; /* enemy / red team */
    --team-blue: #007bff; /* friendly / blue team (changed to clearer blue) */
    --valorant-purple: #8b5fbf;
    --valorant-yellow: #f4d03f;
    --valorant-green: #00ff88;
    
    /* ダークテーマカラー */
    --bg-primary: #0f1419;
    --bg-secondary: #1a2332;
    --bg-tertiary: #243447;
    --bg-accent: #2d4a64;
    
    /* テキストカラー */
    --text-primary: #ffffff;
    --text-secondary: #b3c5d7;
    --text-muted: #7a8fa3;
    
    /* ボーダーとグラデーション */
    --border-color: #3a5470;
    --gradient-primary: linear-gradient(135deg, var(--valorant-red), var(--valorant-purple));
    --gradient-secondary: linear-gradient(135deg, var(--valorant-blue), var(--valorant-purple));
    --gradient-accent: linear-gradient(135deg, var(--valorant-yellow), var(--valorant-red));
    
    /* シャドウ */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(255, 70, 84, 0.3);
    
    /* アニメーション */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== ユーティリティクラス ===== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ===== ヘッダーとナビゲーション ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo i {
    margin-right: 0.5rem;
    color: var(--valorant-red);
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-normal);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 70, 84, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--valorant-red);
    border-radius: 50%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-normal);
}

/* ===== メインコンテンツ ===== */
.main-content {
    margin-top: 80px;
}

/* ===== ヒーローセクション ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    margin-bottom: 4rem;
}

.search-container {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-normal);
}

.search-input:focus {
    border-color: var(--valorant-red);
    box-shadow: var(--shadow-glow);
}

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

.search-button {
    padding: 1rem 1.5rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 1rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--valorant-red);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--valorant-red);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* ===== セクション共通スタイル ===== */
.search-section,
.agents-section,
.maps-section,
.leaderboards-section {
    padding: 6rem 0;
    position: relative;
}

.search-section {
    background: var(--bg-secondary);
}

.agents-section {
    background: var(--bg-primary);
}

.maps-section {
    background: var(--bg-secondary);
}

.leaderboards-section {
    background: var(--bg-primary);
}

/* ===== グリッドレイアウト ===== */
.agents-grid,
.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* ===== フッター ===== */
.footer {
    background: var(--bg-tertiary);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--valorant-red);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

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

/* ===== レスポンシブデザイン ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    /* Header actions (right side) */
    .nav-actions {
        display: flex;
        align-items: center;
    }

    /* プレミアムボタンを小さい画面では非表示にする */
    @media (max-width: 600px) {
        .nav-actions { display: none; }
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .search-container {
        flex-direction: column;
    }

    .search-button {
        margin-left: 0;
        margin-top: 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .agents-grid,
    .maps-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .hero-container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }
}

/* ===== Match Detail Modal ===== */
.modal-overlay.match-detail-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    z-index: 9999;
    overflow: hidden;
    padding: 0;
}

.modal-content.match-detail-content {
    background: linear-gradient(180deg, rgba(20,28,36,0.98), rgba(14,20,26,0.98));
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 32px;
    width: 100vw;
    height: 100vh;
    max-width: none;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    box-shadow: none;
    backdrop-filter: blur(10px);
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-content.match-detail-content.wide { max-width: none; }

.modal-header-inner { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.modal-header .modal-close { 
    background: rgba(255,255,255,0.1); 
    border: none; 
    color: var(--text-secondary); 
    font-size: 32px; 
    cursor: pointer; 
    padding: 8px 16px; 
    border-radius: 8px; 
    transition: all 0.3s ease;
}
.modal-header .modal-close:hover { 
    color: var(--text-primary); 
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.match-detail-body {
    margin-top: 12px;
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.match-detail-body::-webkit-scrollbar {
    display: none;
}

.team-sections {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}
.team-sections.vertical { flex-direction: column; }
.team-section { flex: 1; }
.team-section h5 { margin: 6px 0; font-size: 14px; }
.team-section.friendly { border: 1px solid rgba(0,128,255,0.06); padding: 8px; background: rgba(0,128,255,0.02); }
.team-section.enemy { border: 1px solid rgba(255,64,64,0.06); padding: 8px; background: rgba(255,64,64,0.02); }
.team-section.unassigned { border: 1px dashed rgba(128,128,128,0.08); padding: 8px; background: rgba(0,0,0,0.01); }

.level-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    /* default: dark background with white text for good contrast */
    background: rgba(0,0,0,0.7);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
}

@media (prefers-color-scheme: light) {
    .level-badge {
        background: rgba(0,0,0,0.06);
        color: #222;
        box-shadow: none;
    }
}
.match-meta { display:flex; gap:12px; color:var(--text-secondary); margin-bottom:8px; }
.match-table { background: rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.03); border-radius:8px; overflow:hidden; }
.match-row { display:grid; grid-template-columns: 40px 60px 1fr 120px 100px 120px 80px 70px 80px 140px 160px; gap:8px; align-items:center; padding:10px 12px; border-bottom:1px solid rgba(255,255,255,0.03); }
.match-row.header-row { background: rgba(255,255,255,0.02); font-weight:700; color:var(--text-secondary); }
.match-row .col { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.match-row .col.name { font-weight:700; color:var(--text-primary); }
.match-row .col.agent { color:var(--text-secondary); }
.match-row .dot { display:inline-block; width:12px; height:12px; border-radius:50%; }
.dot.red { background: var(--team-red); }
.dot.blue { background: var(--team-blue); }
.match-row.highlight-player { background: linear-gradient(90deg, rgba(255,70,84,0.06), rgba(0,212,255,0.02)); }
.badge { background: rgba(255,255,255,0.04); color:var(--text-secondary); padding:3px 6px; border-radius:6px; font-size:12px; margin-right:6px; }
.player-row { display:flex; gap:12px; align-items:center; }
.match-raw { background: rgba(0,0,0,0.5); padding:8px; border-radius:6px; color:var(--text-secondary); max-height:300px; overflow:auto; }

@media (max-width: 900px) {
    .match-row { grid-template-columns: 30px 1fr 90px 80px 1fr; grid-auto-flow:row; }
    .match-row .col { font-size:12px; }
}

/* ===== Match detail: round tabs, events and minimap ===== */
.match-detail-main { display: grid; grid-template-columns: 1fr 380px; gap: 16px; align-items: start; }
.match-detail-left { min-width: 0; }
.match-detail-right { width: 100%; }

.round-tabs { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0 8px 0; }
.round-tab { background: rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.03); color:var(--text-secondary); padding:6px 10px; border-radius:8px; cursor:pointer; font-weight:700; font-size:13px; transition: var(--transition-fast); }
.round-tab:hover { transform:translateY(-2px); box-shadow: var(--shadow-sm); }
.round-tab.active { background: linear-gradient(90deg, rgba(255,70,84,0.08), rgba(0,212,255,0.04)); color:var(--text-primary); border-color: rgba(255,70,84,0.18); box-shadow: var(--shadow-glow); }

/* Hide round tabs entirely (UI requested) */
.round-tabs, .round-tab { display: none !important; }

.round-events { background: rgba(0,0,0,0.35); padding: 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.03); max-height: 520px; overflow: auto; }
.round-event { display:flex; gap:10px; align-items:flex-start; padding:8px; border-bottom:1px solid rgba(255,255,255,0.02); }
.round-event:last-child { border-bottom: none; }
.round-event .time { color:var(--text-muted); width:48px; font-size:12px; }
.round-event .desc { color:var(--text-secondary); font-size:13px; flex:1; }
.round-event .meta { color:var(--text-muted); font-size:12px; white-space:nowrap; }
.round-event.kill { background: linear-gradient(90deg, rgba(255,70,84,0.02), transparent); }
.round-event.ability { background: linear-gradient(90deg, rgba(139,95,191,0.02), transparent); }

.mini-map { background: linear-gradient(180deg, rgba(10,16,20,0.9), rgba(18,26,34,0.95)); border-radius:8px; border:1px solid rgba(255,255,255,0.03); padding:8px; display:flex; flex-direction:column; gap:8px; }
.mini-map-canvas { background: rgba(0,0,0,0.25); border-radius:6px; height:220px; position:relative; overflow:hidden; }
.mm-dot { position:absolute; width:10px; height:10px; border-radius:50%; transform:translate(-50%, -50%); border:2px solid rgba(0,0,0,0.6); box-shadow: 0 2px 6px rgba(0,0,0,0.6); }
.mm-dot.red { background: var(--team-red); }
.mm-dot.blue { background: var(--team-blue); }
.mm-dot.self { box-shadow: 0 0 10px rgba(255,255,255,0.08), 0 2px 8px rgba(255,70,84,0.2); border-color: rgba(255,255,255,0.9); width:12px; height:12px; }

.badge { background: rgba(255,255,255,0.03); color:var(--text-secondary); padding:4px 8px; border-radius:999px; font-size:12px; margin-right:6px; display:inline-flex; align-items:center; gap:6px; }
.badge.agent { background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); padding:4px 8px; }

.player-stats { display:flex; gap:8px; align-items:center; color:var(--text-secondary); }
.player-stats .stat { font-weight:700; color:var(--text-primary); }

@media (max-width: 1000px) {
    .match-detail-main { grid-template-columns: 1fr; }
    .match-detail-right { order: 2; }
}

/* ===== Bundle styles ===== */
.bundle-card {
    background: linear-gradient(135deg, rgba(255, 70, 84, 0.08), rgba(139, 95, 191, 0.06));
    border: 1px solid rgba(255, 70, 84, 0.15);
    position: relative;
}

.bundle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--valorant-red), var(--valorant-purple));
    border-radius: 12px 12px 0 0;
}

.bundle-card .offer-subtitle {
    color: var(--valorant-yellow);
    font-size: 14px;
    font-weight: 600;
    margin: 4px 0;
}

.bundle-time {
    color: var(--valorant-blue);
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== 試合履歴スタイル ===== */
.match-history {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.match-history h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.matches-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.match-item {
    display: grid;
    grid-template-columns: 80px 1fr 80px 120px 120px 100px;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    align-items: center;
    transition: var(--transition-fast);
}

.match-item:hover {
    background: var(--bg-accent);
    border-color: var(--valorant-red);
    transform: translateY(-2px);
}

.match-item.victory {
    border-left: 4px solid var(--valorant-green);
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.05), var(--bg-tertiary));
}

.match-item.defeat {
    border-left: 4px solid var(--valorant-red);
    background: linear-gradient(90deg, rgba(255, 70, 84, 0.05), var(--bg-tertiary));
}

.match-result {
    font-weight: 700;
    text-align: center;
    padding: 0.5rem;
    border-radius: 6px;
}

.match-item.victory .match-result {
    color: var(--valorant-green);
    background: rgba(0, 255, 136, 0.1);
}

.match-item.defeat .match-result {
    color: var(--valorant-red);
    background: rgba(255, 70, 84, 0.1);
}

.match-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.match-map {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

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

.match-score {
    text-align: center;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.match-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}

.match-kda {
    font-weight: 600;
    color: var(--valorant-blue);
    font-size: 1rem;
}

.match-score-points {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.match-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}

.match-agent {
    font-weight: 600;
    color: var(--valorant-yellow);
    font-size: 0.9rem;
}

.match-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.match-accuracy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.75rem;
    text-align: center;
}

.headshot-info {
    color: var(--valorant-red);
}

.bodyshot-info {
    color: var(--valorant-blue);
}

.legshot-info {
    color: var(--valorant-yellow);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .match-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
    
    .match-info, .match-stats, .match-details {
        text-align: center;
    }
}

/* ===== 検索機能スタイル ===== */
.search-filters {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

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

.filter-group label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.filter-group select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    color: var(--text-primary);
    font-size: 14px;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--valorant-red);
    box-shadow: 0 0 0 2px rgba(255, 70, 84, 0.2);
}

.advanced-search {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.advanced-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-group input[type="checkbox"] {
    accent-color: var(--valorant-red);
}

.option-group input[type="range"] {
    flex: 1;
    margin: 0 0.5rem;
}

.search-history {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.history-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    transition: var(--transition-fast);
}

.history-item:hover {
    background: var(--bg-accent);
    color: var(--text-primary);
    border-color: var(--valorant-red);
}

.player-profile {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.player-name {
    color: var(--valorant-red);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.player-level {
    background: var(--gradient-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.rank-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.current-rank,
.peak-rank {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.current-rank h4,
.peak-rank h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.rank-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rank-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.rank-details {
    flex: 1;
}

.rank-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.rank-rr,
.rank-elo {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.rank-change {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 12px;
}

.rank-change.positive {
    color: var(--valorant-green);
    background: rgba(0, 255, 136, 0.1);
}

.rank-change.negative {
    color: var(--valorant-red);
    background: rgba(255, 70, 84, 0.1);
}

.peak-rank-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--valorant-yellow);
}

.player-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.player-comparison {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.comparison-card {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

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

.btn-close {
    background: var(--valorant-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.comparison-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comparison-stats div {
    color: var(--text-secondary);
    font-size: 14px;
}

.comparison-chart-container {
    margin-top: 2rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.match-history {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.matches-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.match-item {
    display: grid;
    grid-template-columns: 60px 1fr 1fr 80px 100px 100px;
    gap: 1rem;
    align-items: center;
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid transparent;
}

.match-item.victory {
    border-left-color: var(--valorant-green);
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.05), var(--bg-tertiary));
}

.match-item.defeat {
    border-left-color: var(--valorant-red);
    background: linear-gradient(90deg, rgba(255, 70, 84, 0.05), var(--bg-tertiary));
}

.match-result {
    font-weight: 700;
    text-align: center;
}

.match-item.victory .match-result {
    color: var(--valorant-green);
}

.match-item.defeat .match-result {
    color: var(--valorant-red);
}

.match-map,
.match-mode,
.match-score,
.match-kda,
.match-date {
    color: var(--text-secondary);
    font-size: 14px;
}

.match-kda {
    font-weight: 600;
    color: var(--text-primary);
}

.loading-message,
.error-message,
.success-message {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.loading-message {
    color: var(--valorant-blue);
}

.loading-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.error-message {
    color: var(--valorant-red);
    border-color: var(--valorant-red);
    background: linear-gradient(135deg, rgba(255, 70, 84, 0.05), var(--bg-secondary));
}

.success-message {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), var(--bg-secondary));
    border: 1px solid var(--valorant-green);
    color: var(--valorant-green);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.autocomplete-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.autocomplete-item:hover {
    background: var(--bg-accent);
    color: var(--text-primary);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .search-filters {
        flex-direction: column;
    }
    
    .rank-section {
        grid-template-columns: 1fr;
    }
    
    .player-actions {
        flex-direction: column;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .match-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
    }
    
    .success-message {
        position: fixed;
        top: 2rem;
        left: 2rem;
        right: 2rem;
    }
}

/* ===== 機能セクション ===== */
.features-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--valorant-blue);
    box-shadow: 0 16px 32px rgba(0, 212, 255, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-glow);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* ===== Discord宣伝バナー - クリーンなボックスデザイン ===== */
.discord-promo-section {
    padding: 4rem 2rem;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.discord-promo-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.promo-background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.effect-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
    animation: float-circle 20s ease-in-out infinite;
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #5865f2, #7289da);
    top: -150px;
    left: -150px;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    bottom: -150px;
    right: -150px;
    animation-delay: 3s;
}

.circle-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #ff4654, #8b5fbf);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 6s;
}

@keyframes float-circle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-50px, 50px) scale(0.9); }
}

.discord-promo-header {
    text-align: center;
    margin-bottom: 3rem;
}

.promo-section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.promo-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--valorant-red), transparent);
    margin: 0 auto;
    border-radius: 2px;
}

.discord-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.promo-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.promo-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.promo-card:hover::before {
    opacity: 1;
}

.card-icon-wrapper {
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ffffff;
    position: relative;
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.discord-icon {
    background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
}

.price-icon {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.features-icon {
    background: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.card-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.price-display {
    margin: 1rem 0;
}

.price-large {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
}

.amount {
    font-size: 4rem;
    font-weight: 900;
    color: #ffd700;
    line-height: 1;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.price-suffix {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd700;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.features-list li:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

.features-list i {
    color: var(--valorant-green);
    font-size: 1rem;
}

.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.discord-button {
    background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

.discord-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(88, 101, 242, 0.5);
}

.discord-button .fa-arrow-right {
    transition: transform 0.3s ease;
}

.discord-button:hover .fa-arrow-right {
    transform: translateX(5px);
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .discord-promo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .promo-card:last-child {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .discord-promo-section {
        padding: 3rem 1rem;
    }
    
    .discord-promo-header {
        margin-bottom: 2rem;
    }
    
    .promo-section-title {
        font-size: 2rem;
    }
    
    .discord-promo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .promo-card {
        padding: 2rem 1.5rem;
    }
    
    .promo-card:last-child {
        grid-column: 1;
        max-width: 100%;
    }
    
    .card-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .amount {
        font-size: 3rem;
    }
    
    .currency, .price-suffix {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .promo-section-title {
        font-size: 1.6rem;
    }
    
    .promo-card {
        padding: 1.5rem 1rem;
    }
    
    .card-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .amount {
        font-size: 2.5rem;
    }
    
    .card-button {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}