:root {
    --bg-light: #fff5e6;
    --bg-dark: #1a202c;
    --text-light: #1a202c;
    --text-dark: #ffffff;
    --primary: #ff6b00;
    --secondary: #ff00aa;
    --card-bg-light: #ffffff;
    --card-bg-dark: #2d3748;
    --footer-bg-light: #f7fafc;
    --footer-bg-dark: #2d3748;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#app.light {
    background-color: var(--bg-light);
    color: var(--text-light);
}

#app.dark {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

#loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-light);
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

#app.dark #loading-screen {
    background-color: var(--bg-dark);
}

#loading-logo {
    transition: all 0.5s ease-out;
}

.progress-bar {
    width: 256px;
    height: 16px;
    background-color: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 32px;
}

.progress {
    width: 0;
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: width 0.5s;
}

#loading-percentage {
    margin-top: 16px;
    font-size: 18px;
    font-weight: 600;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--primary);
}

.logo-title-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

#header-logo {
    width: 50px;
    height: 50px;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

h1 {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-switch, .player-count, .current-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

main {
    flex-grow: 1;
    padding: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome {
    text-align: center;
    margin-bottom: 48px;
}

.welcome h2 {
    font-size: 48px;
    margin-bottom: 16px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome p {
    font-size: 24px;
    margin-bottom: 32px;
}

.connect-btn {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 9999px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tabs {
    margin-bottom: 48px;
}

.tab-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.tab-btn {
    background-color: transparent;
    border: none;
    padding: 12px;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s, background-color 0.3s;
}

#app.light .card {
    background-color: var(--card-bg-light);
}

#app.dark .card {
    background-color: var(--card-bg-dark);
}

.card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    font-size: 24px;
    margin: 16px;
}

.card p {
    margin: 0 16px 16px;
}

.card .btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    margin: 0 16px 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.card .btn:hover {
    background-color: var(--secondary);
}

.social-media h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 32px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.tiktok-embed {
    aspect-ratio: 9/16;
    max-width: 300px;
    margin: 0 auto;
}

.tiktok-embed iframe {
    width: 100%;
    height: 100%;
}

.no-video {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    font-size: 18px;
    color: #718096;
    text-align: center;
}

footer {
    padding: 32px;
    border-top: 1px solid var(--primary);
    transition: background-color 0.3s;
}

#app.light footer {
    background-color: var(--footer-bg-light);
}

#app.dark footer {
    background-color: var(--footer-bg-dark);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    color: #718096;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 16px;
    }
}