:root {
    --midnight: #1a1a2e;
    /* Used as primary dark text color */
    --gold: #d4a017;
    /* Slightly deeper gold for better contrast on white */
    --orange: #ff6600;
    --red: #ff3366;
    --blue: #0066cc;
    /* Slightly darker blue for readability */
    --white: #ffffff;
    --bg-light: #fcfcfc;
    --glass: rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    background-color: var(--bg-light);
    color: var(--midnight);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/global_bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    /* Reduced opacity to keep it subtle since blur is gone */
    z-index: -1;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--midnight);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 60px;
    background: var(--bg-light);
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* Removed the harsh white overlay */

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    pointer-events: none;
    /* Let clicks pass through if needed, though buttons will have pointer-events: all */
}

.hero-content * {
    pointer-events: all;
}

.logo-overlay {
    margin-bottom: 2rem;
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.fest-title-top {
    font-size: 3rem;
    font-weight: 900;
    display: block;
    color: var(--gold);
    text-shadow:
        2px 2px 0 #fff, -2px -2px 0 #fff,
        2px -2px 0 #fff, -2px 2px 0 #fff,
        0 0 15px rgba(255, 255, 255, 0.8);
}

.fest-title-main {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0.5rem 0;
    background: linear-gradient(45deg, var(--gold), var(--orange), var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 0 #fff) drop-shadow(-2px -2px 0 #fff) drop-shadow(2px -2px 0 #fff) drop-shadow(-2px 2px 0 #fff);
}

.fest-location {
    font-size: 2rem;
    font-weight: 700;
    background-color: #008000;
    color: white;
    padding: 0.2rem 1.5rem;
    border-radius: 5px;
    display: inline-block;
}

.event-info-box {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    /* Enhanced glassmorphism */
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.event-date {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--midnight);
}

.event-date span {
    font-size: 1.5rem;
}

.event-venue {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.btn-youtube {
    display: inline-block;
    background: var(--red);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.4);
    transition: transform 0.3s, background 0.3s;
}

.btn-youtube:hover {
    transform: scale(1.05);
    background: #ff0044;
}

/* Sections */
.section-container {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
}

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

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gold);
    margin: 10px auto;
}

/* YouTube */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(255, 204, 0, 0.2);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* News */
.news-list {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.news-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.news-item .date {
    font-weight: 700;
    color: var(--blue);
}

.news-item .category {
    background: var(--gold);
    color: var(--midnight);
    font-size: 0.8rem;
    font-weight: 900;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

/* Articles */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-card {
    display: flex;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.article-thumb {
    flex: 0 0 40%;
    min-height: 200px;
}

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

.article-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.article-site {
    font-weight: 900;
    color: #2cb696;
    /* note green */
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.article-card h4 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-summary {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-more {
    align-self: flex-start;
    color: var(--midnight);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 2px;
    transition: color 0.3s, border-color 0.3s;
}

.btn-more:hover {
    color: var(--gold);
    border-color: var(--midnight);
}

.articles-footer {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.btn-more-articles {
    display: inline-block;
    padding: 1rem 3rem;
    background: rgba(44, 182, 150, 0.1);
    color: #2cb696;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid rgba(44, 182, 150, 0.3);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-more-articles:hover {
    background: #2cb696;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(44, 182, 150, 0.2);
}

/* SNS Section: Social Wall */
.social-wall {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 992px) {
    .social-wall {
        grid-template-columns: 1fr;
    }
}

/* Social Feed Column */
.social-feed-column {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.live-indicator {
    background: rgba(255, 0, 0, 0.1);
    color: #ff3b30;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid rgba(255, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.live-indicator:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: scale(1.05);
}

.live-indicator:active {
    transform: scale(0.95);
}

.pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ff3b30;
    border-radius: 50%;
    animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 59, 48, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

.feed-title {
    font-weight: 700;
    opacity: 0.7;
    font-size: 0.9rem;
}

.tweet-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 400px;
    /* Prevent jump on refresh */
}

.tweet-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    padding: 1.2rem;
    transition: all 0.3s ease;
    animation: fade-in-up 0.5s ease-out forwards;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tweet-card:hover {
    transform: scale(1.02);
}

.tweet-user {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.tweet-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.tweet-avatar-dummy {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.user-meta {
    display: flex;
    flex-direction: column;
}

.display-name {
    font-weight: 800;
    font-size: 0.95rem;
}

.user-handle {
    font-size: 0.8rem;
    opacity: 0.6;
}

.tweet-body {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.tweet-time {
    font-size: 0.8rem;
    opacity: 0.4;
    display: block;
}

.btn-view-more {
    align-self: center;
    background: var(--midnight);
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.btn-view-more:hover {
    opacity: 0.8;
}

/* SNS Dashboard Column */
.sns-dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dash-card {
    height: 120px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-weight: 900;
    font-size: 0.8rem;
    gap: 0.5rem;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.dash-card:hover {
    transform: translateZ(20px) scale(1.05);
}

.dash-card i {
    font-size: 2rem;
}

.dash-card .note-icon-small {
    width: 30px;
    filter: brightness(0) invert(1);
}

.x-card {
    background: linear-gradient(135deg, #14171a, #000000);
}

.youtube-card {
    background: linear-gradient(135deg, #ff0000, #b20000);
}

.note-card {
    background: linear-gradient(135deg, #2cb696, #218c74);
}

.dash-label {
    letter-spacing: 0.1em;
}

/* Artists */
.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.artist-card {
    background: white;
    color: var(--midnight);
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 1.5rem;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.artist-card:hover {
    transform: translateY(-10px) rotate(2deg);
}

.artist-image {
    height: 250px;
    background: #f0f0f0;
    margin-bottom: 1rem;
}

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

.artist-card h4 {
    font-size: 1.4rem;
    font-weight: 900;
}

.artist-card p {
    font-size: 0.9rem;
    color: #666;
}

.more-artists {
    text-align: center;
    margin-top: 3rem;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: var(--gold);
}

/* Info */
.info-content {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
}

dt {
    font-weight: 900;
    color: var(--gold);
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .fest-title-main {
        font-size: 2.5rem;
    }

    .fest-title-top {
        font-size: 2rem;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    dl {
        grid-template-columns: 1fr;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .article-card {
        flex-direction: column;
    }

    .article-thumb {
        flex: 0 0 auto;
        height: 180px;
    }
}