
@import url('./components/modal-content.css');
@import url('./components/music-overlay.css');
@import url('./components/music-thumbs.css');
@import url('./components/music-title.css');
@import url('./components/thumb-enhanced.css');
@import url('./components/thumb-overlay.css');

@import url('./layout/cards.css');
@import url('./layout/grid.css');
@import url('./layout/list.css');

@import url('./themes/anime.css');
@import url('./themes/dark.css');
@import url('./themes/gamer.css');
@import url('./themes/light.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --panel-bg: rgba(10, 12, 21, 0.96);
    --panel-border: rgba(59, 130, 246, 0.24);
    --card-bg: rgba(17, 24, 39, 0.92);
    --card-border: rgba(59, 130, 246, 0.16);
    --text-main: #ffffff;
    --text-soft: #a9b1bd;
    --text-faint: #7d8795;
    --blue-1: #3b82f6;
    --blue-2: #2563eb;
    --green-1: #10b981;
    --green-2: #059669;
    --red-1: #ef4444;
    --red-2: #dc2626;
    --purple-1: #8b5cf6;
    --purple-2: #7c3aed;
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.22);
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-pill: 999px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: background 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    cursor: default;
}

.hidden {
    display: none !important;
}

#particlesCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

input,
textarea,
select {
    cursor: text;
}

button,
a,
.logo,
.category-link,
.site-card,
.search-result-item,
.favorites-quick-list li {
    cursor: pointer;
}

.header,
.nav-categories,
.container,
.music-panel,
.footer-player,
.favorites-quick-panel,
.notification-container,
.modal {
    position: relative;
    z-index: 10;
}

.header {
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(10, 12, 21, 0.90);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.25s ease;
}

.logo:hover {
    transform: scale(1.03);
}

.logo-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo p {
    font-size: 0.72rem;
    color: var(--text-soft);
}

.controls {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

#googleLoginBtn {
    min-height: 40px;
    display: flex;
    align-items: center;
}

#userInfo {
    display: flex;
    align-items: center;
}

.user-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-name {
    color: var(--text-main);
    font-size: 0.86rem;
    font-weight: 600;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    background: linear-gradient(135deg, var(--red-1), var(--red-2));
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.logout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.theme-selector,
.layout-selector {
    display: flex;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.theme-btn,
.layout-btn {
    padding: 11px 18px;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.10);
    color: white;
    min-width: 110px;
}

.theme-btn:hover,
.layout-btn:hover {
    transform: translateY(-2px);
    background: rgba(59, 130, 246, 0.40);
}

.theme-btn.active,
.layout-btn.active {
    background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
    color: white;
}

.nav-categories {
    padding: 12px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
}

.categories-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-link {
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: none;
}

.category-link:hover {
    transform: translateY(-2px);
    background: rgba(59, 130, 246, 0.28);
}

.category-link.active {
    background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
    color: white;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 24px 150px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.section-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
    position: relative;
}

.add-btn,
.clear-history-btn,
.btn-primary,
.btn-secondary {
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.25s ease;
}

.add-btn {
    background: linear-gradient(135deg, var(--green-1), var(--green-2));
    color: white;
    padding: 10px 24px;
    font-size: 0.9rem;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.clear-history-btn {
    background: linear-gradient(135deg, var(--red-1), var(--red-2));
    color: white;
    padding: 10px 22px;
    font-size: 0.85rem;
    gap: 8px;
}

.clear-history-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
}

.library-side-btn {
    order: -1;
    opacity: 0;
    transform: translateX(12px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.section-actions.show-library .library-side-btn {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.library-side-btn.hidden {
    display: none !important;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 10px;
}

.sites-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.sites-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 10px;
}

.site-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 18px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.site-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue-1);
    box-shadow: var(--shadow-lg);
}

.site-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.site-icon-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 12px;
    display: block;
    background: transparent;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.thumb-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.03);
}

.site-thumb {
    width: 100%;
    height: 145px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    filter: brightness(0.92) contrast(1.06);
}

.site-name {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 6px;
    color: white;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-desc {
    font-size: 0.82rem;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--text-soft);
    text-align: left;
    overflow: hidden;
}

.site-url {
    font-size: 0.68rem;
    color: var(--text-faint);
    margin-bottom: 12px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sites-grid .site-card {
    display: block;
}

.sites-grid .site-thumb {
    width: 100%;
    height: 145px;
}

.sites-list .site-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 18px;
    align-items: stretch;
    min-height: 180px;
}

.sites-list .thumb-wrapper {
    margin-bottom: 0;
    height: 100%;
    min-height: 140px;
}

.sites-list .site-thumb {
    width: 160px;
    height: 100%;
    min-height: 140px;
    margin-bottom: 0;
    object-fit: cover;
    object-position: center;
}

.sites-list .site-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    height: 100%;
}

.sites-list .site-card-top {
    min-width: 0;
}

.sites-list .site-card-bottom {
    margin-top: 14px;
}

.sites-list .site-name {
    font-size: 1.08rem;
    white-space: nowrap;
}

.sites-list .site-desc {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.sites-list .site-actions {
    width: 100%;
}

.sites-list .site-actions .edit-btn,
.sites-list .site-actions .delete-btn {
    flex: 1 1 140px;
}

.sites-cards .site-card {
    padding: 16px;
    border-radius: 18px;
}

.sites-cards .site-thumb {
    height: 130px;
    object-fit: cover;
    object-position: center;
}

.sites-cards .site-name {
    font-size: 0.96rem;
}

.sites-cards .site-desc {
    font-size: 0.76rem;
}

.site-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
    align-items: stretch;
}

.edit-btn,
.delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.2;
    min-height: 38px;
    padding: 8px 12px;
    flex: 1 1 120px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.25s ease;
}

.edit-btn {
    background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
    color: white;
}

.edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.delete-btn {
    background: linear-gradient(135deg, var(--red-1), var(--red-2));
    color: white;
}

.delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.favorites-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.favorites-quick-panel {
    position: absolute;
    bottom: 15px;
    left: 67%;
    transform: translateX(-50%);
    width: 220px;
    max-height: 240px;
    background: rgba(10, 12, 21, 0.98);
    backdrop-filter: blur(16px);
    border-radius: 12px;
    padding: 8px;
    overflow-y: auto;
    z-index: 99999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.22);
}

.favorites-quick-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.favorites-quick-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: white;
    cursor: pointer;
}

.favorites-quick-list li:hover {
    background: rgba(255, 255, 255, 0.06);
}

.favorites-quick-thumb {
    width: 48px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.favorites-quick-title {
    flex: 1;
    min-width: 0;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorites-quick-panel::-webkit-scrollbar {
    width: 4px;
}

.favorites-quick-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.favorites-quick-panel::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.5);
    border-radius: 10px;
}

.music-panel {
    position: fixed;
    right: 20px;
    bottom: 75px;
    width: 380px;
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    z-index: 9998;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--panel-border);
    overflow: hidden;
    transition: all 0.25s ease;
}

.music-panel.collapsed .music-panel-body {
    display: none;
}

.music-panel-header {
    padding: 12px 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
    color: white;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.music-panel-header button {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: bold;
}

.music-panel-body {
    display: block;
}

.youtube-video-box {
    padding: 12px;
}

.youtube-video-box #youtubePlayer {
    width: 100%;
    height: 210px;
    border-radius: 14px;
    overflow: hidden;
    background: #111827;
}

.youtube-search-box {
    display: flex;
    gap: 8px;
    padding: 0 12px 12px;
}

.youtube-search-box input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid #2d313e;
    background: #1e212a;
    color: white;
    outline: none;
}

.youtube-search-box input:focus {
    border-color: var(--blue-1);
}

.youtube-search-box button {
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    border: none;
    background: linear-gradient(135deg, var(--purple-1), var(--purple-2));
    color: white;
    font-weight: 600;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.youtube-search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.search-results {
    max-height: 230px;
    overflow-y: auto;
    margin: 0 12px 12px;
    padding-right: 4px;
}

.search-result-item {
    padding: 8px;
    margin: 6px 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: all 0.25s ease;
}

.search-result-item:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateX(4px);
}

.search-result-item img {
    width: 42px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-item .result-text {
    flex: 1;
    min-width: 0;
}

.search-result-item strong,
.search-result-item small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.search-result-item.channel-result {
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.search-result-item.channel-result .channel-badge {
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.footer-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a0b2e;
    padding: 10px 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    z-index: 9999;
}

.footer-left {
    color: white;
}

.track-title {
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 11px;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-center button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-center button:hover {
    background: rgba(59, 130, 246, 0.25);
    transform: scale(1.05);
}

.play-pause {
    background: #3b82f6 !important;
    color: white !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.play-pause:hover {
    background: #2563eb !important;
    transform: scale(1.05);
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    position: relative;
    width: 0%;
    height: 100%;
    background: #3b82f6;
    border-radius: 999px;
    transition: width 0.1s linear;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(59, 130, 246, 0.5);
    transition: transform 0.2s ease;
}

.time-info {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    min-width: 80px;
    text-align: center;
}

#favoritesToggleBtn {
    background: rgba(255,255,255,0.08);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#favoritesToggleBtn:hover {
    background: rgba(251, 191, 36, 0.35);
    transform: translateY(-2px);
}

#favoritesToggleBtn.active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.footer-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.volume-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

#volumeControl {
    width: 100px;
    height: 4px;
    border-radius: 5px;
    background: #3b82f6;
}

.volume-icon {
    color: white;
    font-size: 18px;
    transition: all 0.2s ease;
}

.volume-icon:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.play-pause.playing {
    animation: pulse 1.5s infinite;
}

.notification-container {
    position: fixed;
    top: 88px;
    right: 20px;
    left: auto;
    bottom: auto;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(360px, calc(100vw - 24px));
    max-width: 360px;
    pointer-events: none;
}

.notification-container .notification {
    pointer-events: auto;
}

.notification {
    background: rgba(30, 33, 42, 0.95);
    backdrop-filter: blur(10px);
    border-left: 4px solid;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease forwards;
    box-shadow: var(--shadow-md);
    
}

.notification button {
    background: none;
    border: none;
    color: #8b92a8;
    font-size: 1rem;
}

.notification-success { border-left-color: #10b981; }
.notification-error { border-left-color: #ef4444; }
.notification-info { border-left-color: #3b82f6; }
.notification-warning { border-left-color: #f59e0b; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: #1a1d26;
    border-radius: 24px;
    padding: 28px;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--blue-1);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--blue-1);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #2d313e;
    background: #1e212a;
    color: white;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--blue-1);
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-1), var(--green-2));
    color: white;
    padding: 10px 24px;
    flex: 1;
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    padding: 10px 24px;
    flex: 1;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1d26;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
    border-radius: 10px;
}

@media (max-width: 1100px) {
    .music-panel {
        width: 350px;
    }
}

@media (max-width: 900px) {
    .footer-player {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-bottom: 14px;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        justify-content: center;
        text-align: center;
    }

    .track-title,
    .track-artist {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .music-panel {
        left: 10px;
        right: 10px;
        width: auto;
        bottom: 155px;
    }

    .footer-center {
        flex-wrap: wrap;
    }

    .progress-bar {
        width: 150px;
    }

    .notification-container {
        top: 72px;
        right: 10px;
        left: 10px;
        bottom: auto;
        max-width: none;
        width: auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 16px 150px;
    }

    .sites-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sites-cards {
        grid-template-columns: 1fr;
    }

    .sites-list .site-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .sites-list .thumb-wrapper {
        height: auto;
        min-height: unset;
    }

    .sites-list .site-thumb {
        width: 100%;
        height: 180px;
        min-height: unset;
        margin-bottom: 0;
    }

    .category-link {
        padding: 8px 14px;
        font-size: 0.76rem;
    }

    .site-actions {
        flex-direction: column;
    }

    .edit-btn,
    .delete-btn {
        flex: 1 1 100%;
        width: 100%;
    }

    .youtube-video-box #youtubePlayer {
        height: 190px;
    }

    .volume-area {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .theme-selector,
    .layout-selector {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .theme-btn,
    .layout-btn {
        flex: 1 1 140px;
    }

    .section-header {
        align-items: stretch;
    }

    .section-actions {
        width: 100%;
    }

    .add-btn,
    .clear-history-btn {
        flex: 1;
    }

    .user-name {
        max-width: 110px;
    }
}