body {
    background-color: #000;
    color: #fff;
    font-family: 'Oswald', 'Noto Sans JP', sans-serif;
}

.clip-list-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.page-title {
    color: #ffff00;
    text-align: center;
    font-size: 2.5em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 40px 0;
    text-shadow: 3px 3px 0 #000;
}

/* --- Tabbed Team Index --- */
.team-index {
    position: sticky;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    z-index: 100;
    padding: 40px 10px 0 10px;
    background: transparent;
    pointer-events: none;
    /* Allow clicking through to content if needed, but tabs need pointer-events */
}

.team-tab {
    position: relative;
    padding: 12px 18px;
    border-radius: 15px 15px 0 0;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: none;
    flex-grow: 1;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(5px);
}

.team-tab.active {
    opacity: 1;
    transform: translateY(0);
    z-index: 110;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

.team-tab:hover:not(.active) {
    transform: translateY(2px);
}

/* --- Stacking Container --- */
#clip-content {
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
    min-height: 200px;
    margin-top: -1px;
    /* Merging tabs and body */
}

/* --- Team Paper Sheet --- */
.team-paper {
    grid-area: 1 / 1;
    background: #fff;
    color: #222;
    margin-bottom: 60px;
    padding: 60px 40px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    border-radius: 20px;
    transition: opacity 0.5s ease, transform 0.5s ease, z-index 0s;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transform: translateY(30px) scale(0.98);
}

.team-paper.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 20;
    transform: translateY(0) scale(1);
}

.team-header {
    border-bottom: 3px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.team-header h2 {
    margin: 0;
    font-size: 2em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- List Display --- */
.clip-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
    padding: 18px 25px;
    text-decoration: none;
    color: #333;
    transition: 0.2s;
    border-radius: 8px;
}

.clip-item:hover {
    background: #fff;
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: scale(1.01);
}

.clip-streamer {
    min-width: 180px;
    font-weight: 700;
    color: #555;
    font-size: 1em;
}

.clip-title {
    flex: 1;
    font-weight: 500;
}

.clip-icon {
    margin-left: 15px;
    color: #bbb;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .team-index {
        top: 50px;
        padding: 10px 5px 0 5px;
    }

    .team-tab {
        padding: 8px 10px;
        font-size: 0.7em;
    }

    .team-paper {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .team-header h2 {
        font-size: 1.5em;
        gap: 10px;
    }

    .clip-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .clip-streamer {
        min-width: auto;
        font-size: 0.9em;
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .team-header h2 {
        font-size: 1.2em;
        gap: 8px;
    }

    .page-title {
        font-size: 1.8em;
    }
}

@media (max-width: 360px) {
    .team-header h2 {
        font-size: 1em;
        gap: 5px;
    }
}

/* Back Button */
.back-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700;
    color: #111 !important;
    font-weight: bold;
    font-size: 1.1em;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid #FFD700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.back-btn:hover {
    background: transparent;
    color: #FFD700 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}