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

:root {
    --primary-dark: #090909;
    --secondary-dark: #111111;
    --accent-color: #ed4f91;
    --accent-hover: #ff75ab;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --card-bg: #151515;
    --card-hover: #1c1c1c;
    --border-color: #2b2b2b;
    --header-height: 70px;
    --error-color: #ff4757;
    --player-bg: #000000;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0a0a;
    background-color: var(--primary-dark);
    color: #ffffff;
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    padding-top: 120px;
    scrollbar-color: var(--accent-color) var(--primary-dark);
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.base-header {
    background-color: #111111;
    background-color: var(--secondary-dark);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid #333333;
    border-bottom: 1px solid var(--border-color);
    -webkit-box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.header-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    height: 70px;
}

.logo-section {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    margin-right: 20px;
}

.logo {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-decoration: none;
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}
.logo:hover { opacity: 0.9; }

.logo-icon {
    font-size: 32px;
    color: #00aa55;
    color: var(--accent-color);
    margin-right: 12px;
}

.logo-img {
    width: 38px;
    height: 30px;
    object-fit: contain;
    display: block;
    margin-right: 16px;
    filter: none;
}

.logo-text {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: baseline;
    -ms-flex-align: baseline;
    align-items: baseline;
}

.logo-main {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-right: 4px;
}

.logo-plus {
    font-size: 28px;
    font-weight: 700;
    color: #00aa55;
    color: var(--accent-color);
}

.main-nav {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

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

.nav-item {
    position: relative;
    margin: 0 12px;
}

.nav-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: #ffffff;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 8px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    cursor: pointer;
}

.nav-link i:first-child {
    font-size: 18px;
    margin-right: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background-color: rgba(0,170,85,0.8);
}

.dropdown-arrow {
    font-size: 12px;
    margin-left: 8px;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    color: #cccccc;
    color: var(--text-secondary);
}

.nav-item.dropdown { position: relative; }

.nav-item.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-6px);
    transform: translateX(-50%) translateY(-6px);
    background-color: rgba(20,20,20,0.98);
    min-width: 680px;
    max-height: 70vh;
    overflow-y: auto;
    -webkit-box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    z-index: 1100;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #333333;
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    -webkit-transition: opacity 0.2s ease, visibility 0.2s ease, -webkit-transform 0.2s ease;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    -webkit-transform: translateX(-50%) rotate(45deg);
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(20,20,20,0.98);
    border-left: 1px solid #333333;
    border-top: 1px solid #333333;
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    -webkit-transform: translateX(-50%) translateY(0);
    transform: translateX(-50%) translateY(0);
}

.nav-item.dropdown:hover .dropdown-arrow,
.nav-item.dropdown.active .dropdown-arrow {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
    color: #00aa55;
    color: var(--accent-color);
}

.dropdown-columns {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.dropdown-column {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 150px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 0 15px;
}

.dropdown-column a {
    display: block;
    color: #ffffff;
    color: var(--text-primary);
    padding: 8px 0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-column a:hover {
    color: #00aa55;
    color: var(--accent-color);
    border-bottom-color: #00aa55;
    padding-left: 5px;
}

.header-controls {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-left: 12px;
}

.search-box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: #1a1a1a;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333333;
    border: 1px solid var(--border-color);
    -webkit-transition: border-color 0.2s ease, -webkit-box-shadow 0.2s ease;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-right: 12px;
}
.search-box:focus-within {
    border-color: #00aa55;
    -webkit-box-shadow: 0 0 0 2px rgba(0,170,85,0.15);
    box-shadow: 0 0 0 2px rgba(0,170,85,0.15);
}

.search-input {
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: #ffffff;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    min-width: 220px;
    outline: none;
}
.search-input::-webkit-input-placeholder { color: #cccccc; }
.search-input:-ms-input-placeholder { color: #cccccc; }
.search-input::placeholder { color: #cccccc; }

.search-btn {
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: #cccccc;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 15px;
    -webkit-transition: color 0.2s ease;
    transition: color 0.2s ease;
}
.search-btn:hover { color: #00aa55; }

.back-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    white-space: nowrap;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    -webkit-transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, -webkit-transform 0.1s ease;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.1s ease;
}
.back-btn i { font-size: 12px; margin-right: 6px; -webkit-transition: -webkit-transform 0.2s ease; transition: transform 0.2s ease; }
.back-btn:hover { color: #fff; border-color: rgba(0,170,85,0.5); background: rgba(255,255,255,0.07); }
.back-btn:hover i { -webkit-transform: translateX(-3px); transform: translateX(-3px); }
.back-btn:active { -webkit-transform: scale(0.96); transform: scale(0.96); }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    -webkit-transition: background 0.2s ease;
    transition: background 0.2s ease;
    -webkit-box-ordinal-group: 0;
    -ms-flex-order: -1;
    order: -1;
    margin-right: 12px;
}
.mobile-toggle:hover { background: rgba(255,255,255,0.08); }

.user-menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.user-login-btn {
    background: transparent;
    border: none;
    color: #cccccc;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-transition: color 0.2s ease;
    transition: color 0.2s ease;
}
.user-login-btn:hover { color: #00aa55; }

.user-profile {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.user-profile:hover { opacity: 0.85; }

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #00aa55;
    background: var(--accent-color);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-right: 8px;
}

.user-name {
    color: #ffffff;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 6px;
}

.user-logout {
    background: transparent;
    border: none;
    color: #cccccc;
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    cursor: pointer;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    font-size: 15px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}
.user-logout:hover { background: rgba(255,77,87,0.15); color: #ff4757; }

.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2000;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: rgba(0,0,0,0.7);
    pointer-events: none;
    opacity: 0;
    -webkit-transition: opacity 0.25s ease;
    transition: opacity 0.25s ease;
}
.modal.show { opacity: 1; pointer-events: auto; }

.modal-content {
    position: relative;
    width: 420px;
    max-width: calc(100vw - 32px);
    background: #1c1c1c;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 36px 32px 32px;
    -webkit-box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
}
.modal.show .modal-content { -webkit-transform: translateY(0); transform: translateY(0); }

.modal-close {
    position: absolute;
    right: 16px;
    top: 14px;
    width: 32px;
    height: 32px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: none;
    border-radius: 8px;
    color: #cccccc;
    font-size: 20px;
    cursor: pointer;
    -webkit-transition: background 0.2s, color 0.2s;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: #ffffff; }

.modal-logo {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-bottom: 28px;
}
.modal-logo-icon { font-size: 26px; color: #00aa55; margin-right: 8px; }
.modal-logo-img { width: 42px; height: 28px; margin-right: 12px; object-fit: contain; }
.modal-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.modal-logo-text span { color: #00aa55; }

.auth-tabs {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    background: rgba(255,255,255,0.04);
    border: 1px solid #333333;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 28px;
}

.auth-tab {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    background: none;
    border: none;
    color: #cccccc;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    padding: 9px 12px;
    border-radius: 7px;
    cursor: pointer;
    -webkit-transition: color 0.2s, background 0.2s;
    transition: color 0.2s, background 0.2s;
    letter-spacing: 0.3px;
    margin: 0 2px;
}
.auth-tab.active { background: #00aa55; color: #ffffff; }
.auth-tab:not(.active):hover { color: #ffffff; background: rgba(255,255,255,0.06); }

.auth-form { display: none; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
.auth-form.active { display: -webkit-box; display: -ms-flexbox; display: flex; }

.input-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0 16px;
    -webkit-transition: border-color 0.2s, -webkit-box-shadow 0.2s;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 14px;
}
.input-group:focus-within {
    border-color: #00aa55;
    -webkit-box-shadow: 0 0 0 3px rgba(0,170,85,0.12);
    box-shadow: 0 0 0 3px rgba(0,170,85,0.12);
}
.input-group i { color: #cccccc; font-size: 15px; width: 18px; -ms-flex-negative: 0; flex-shrink: 0; margin-right: 4px; }
.input-group input {
    background: transparent;
    border: none;
    padding: 14px 12px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    width: 100%;
    outline: none;
}
.input-group input::-webkit-input-placeholder { color: rgba(255,255,255,0.25); }
.input-group input:-ms-input-placeholder { color: rgba(255,255,255,0.25); }
.input-group input::placeholder { color: rgba(255,255,255,0.25); }

.auth-submit {
    background: #00aa55;
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-top: 6px;
    letter-spacing: 0.3px;
    -webkit-transition: background 0.2s, -webkit-transform 0.1s, -webkit-box-shadow 0.2s;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}
.auth-submit:hover { background: #00cc66; -webkit-box-shadow: 0 4px 16px rgba(0,170,85,0.3); box-shadow: 0 4px 16px rgba(0,170,85,0.3); }
.auth-submit:active { -webkit-transform: scale(0.98); transform: scale(0.98); }

.auth-error { color: #ff4757; font-size: 13px; margin-top: 8px; text-align: center; min-height: 18px; }

main { margin-top: 50px; margin-bottom: 24px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #090909; }
::-webkit-scrollbar-thumb { background: #00aa55; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #00cc66; }

.nav-link, .dropdown-column a, .back-btn, .search-btn, .user-login-btn, .user-logout, .mobile-toggle {
    -ms-touch-action: manipulation;
    touch-action: manipulation;
}

#profileModal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2000;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    pointer-events: none;
    -webkit-transition: background 0.25s ease;
    transition: background 0.25s ease;
}
#profileModal.show {
    background: rgba(0,0,0,0.6);
    pointer-events: auto;
}

.profile-modal-content {
    position: relative;
    width: 420px;
    max-width: calc(100vw - 32px);
    max-height: 78vh;
    background: #1a1a1a;
    background: var(--card-bg);
    border: 1px solid #333333;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    -webkit-box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    overflow: hidden;
    -webkit-transform: translateY(12px);
    transform: translateY(12px);
    opacity: 0;
    -webkit-transition: -webkit-transform 0.25s ease, opacity 0.25s ease;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
#profileModal.show .profile-modal-content {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
}

.modal-close#profileModalClose {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: none;
    border-radius: 6px;
    color: #cccccc;
    font-size: 16px;
    cursor: pointer;
    -webkit-transition: background 0.2s, color 0.2s;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}
.modal-close#profileModalClose:hover { background: rgba(255,255,255,0.1); color: #ffffff; }

.profile-header {
    padding: 22px 22px 18px;
    border-bottom: 1px solid #333333;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.profile-header-top {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.profile-avatar {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #00aa55;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-right: 14px;
}

.profile-username {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.profile-email {
    font-size: 12px;
    color: #cccccc;
    margin-top: 2px;
}

.profile-body {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    overflow-y: auto;
    padding: 8px 14px 14px;
    min-height: 0;
}
.profile-body::-webkit-scrollbar { width: 4px; }
.profile-body::-webkit-scrollbar-track { background: transparent; }
.profile-body::-webkit-scrollbar-thumb { background: #333333; border-radius: 2px; }

.profile-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 6px;
}

.profile-history { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }

.profile-history-loading {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 28px;
    color: #00aa55;
    font-size: 20px;
}

.profile-watch-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 9px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    -webkit-transition: background 0.15s;
    transition: background 0.15s;
    margin-bottom: 2px;
}
.profile-watch-item:hover { background: #222222; }

.profile-watch-poster {
    width: 40px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    background: #111111;
    margin-right: 12px;
}

.profile-watch-poster-ph {
    width: 40px;
    height: 56px;
    border-radius: 6px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    background: #111111;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #333333;
    font-size: 15px;
    margin-right: 12px;
}

.profile-watch-info {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-right: 10px;
}

.profile-watch-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.profile-watch-sub {
    font-size: 11px;
    color: #cccccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-watch-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,170,85,0.12);
    color: #00aa55;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 10px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-transition: background 0.15s;
    transition: background 0.15s;
}
.profile-watch-item:hover .profile-watch-btn { background: #00aa55; color: #fff; }

.profile-watch-bar {
    position: absolute;
    bottom: 0;
    left: 8px;
    right: 8px;
    height: 2px;
    background: rgba(255,255,255,0.06);
    border-radius: 1px;
}
.profile-watch-bar-fill {
    height: 100%;
    background: #00aa55;
    border-radius: 1px;
}

.profile-history-empty {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 28px 16px;
    color: #cccccc;
    font-size: 13px;
}

.profile-footer {
    padding: 14px 16px;
    border-top: 1px solid #333333;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.profile-logout-btn {
    width: 100%;
    background: none;
    color: #ff4757;
    border: 1px solid #333333;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: border-color 0.2s, background 0.2s;
    transition: border-color 0.2s, background 0.2s;
}
.profile-logout-btn i { margin-right: 8px; }
.profile-logout-btn:hover { border-color: #ff4757; background: rgba(255,71,87,0.06); }

@media (max-width: 1024px) {
    .search-input { min-width: 160px; }
    .nav-item { margin: 0 6px; }
    .nav-link { padding: 10px 14px; font-size: 14px; }
}

@media (max-width: 768px) {
    body { padding-top: 80px; }
    .container { padding: 0 16px; }
    .mobile-toggle { display: -webkit-box; display: -ms-flexbox; display: flex; }
    .main-nav { display: none; }
    .main-nav.open { display: -webkit-box; display: -ms-flexbox; display: flex; position: fixed; top: 70px; left: 0; right: 0; bottom: 0; background: #111111; z-index: 999; overflow-y: auto; padding: 20px; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
    .nav-menu { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; width: 100%; }
    .nav-item { margin: 0; margin-bottom: 4px; }
    .dropdown-menu { position: static; -webkit-transform: none; transform: none; min-width: 0; width: 100%; opacity: 1; visibility: visible; pointer-events: auto; -webkit-box-shadow: none; box-shadow: none; display: none; padding: 10px 0 10px 20px; }
    .nav-item.dropdown.active .dropdown-menu { display: block; }
    .dropdown-columns { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
    .search-input { min-width: 120px; }
    .user-name { display: none; }
}

#pageLoader {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity .4s ease, visibility .4s ease;
}
#pageLoader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.dino-scene {
    position: relative;
    width: 160px;
    height: 68px;
}
.ground-line {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: rgba(255,255,255,.1);
}
.dino-img {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: auto;
    image-rendering: pixelated;
}
#dinoFrame2 { display: none; }
.loader-logo {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .12em;
    color: rgba(255,255,255,.85);
}
.loader-logo span { color: var(--accent-color); }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    color: #888;
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.15);
}

.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px;
    background: #fff;
    color: #333;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.auth-google-btn:hover {
    background: #f1f1f1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.profile-edit-btn {
    margin-left: auto;
    background: rgba(255,255,255,0.05);
    border: none;
    color: #ccc;
    width: 32px; height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.profile-edit-btn:hover, .profile-edit-btn.active { background: rgba(0,170,85,0.15); color: #00aa55; }

.profile-edit-panel {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.profile-edit-row {
    display: flex; gap: 8px; align-items: center;
}
.profile-save-btn {
    background: #00aa55; color: #fff; border: none;
    padding: 0 16px; height: 46px; border-radius: 10px;
    font-size: 13px; font-weight: 600; font-family: inherit;
    cursor: pointer; white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}
.profile-save-btn:hover { background: #00cc66; }

.profile-avatar-picker {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 6px; margin-top: 12px;
}
.avatar-picker-label { font-size: 11px; color: #888; }
.avatar-colors { display: flex; gap: 6px; }
.avatar-color-dot {
    width: 22px; height: 22px; border-radius: 50%;
    cursor: pointer; border: 2px solid transparent;
    transition: border-color 0.15s, transform 0.15s;
}
.avatar-color-dot.active, .avatar-color-dot:hover {
    border-color: #fff;
    transform: scale(1.15);
}
.avatar-emojis { display: flex; gap: 4px; }
.avatar-emoji-opt {
    width: 28px; height: 28px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid transparent;
    transition: border-color 0.15s, background 0.15s;
    font-weight: 700; color: #fff; font-size: 13px;
}
.avatar-emoji-opt.active, .avatar-emoji-opt:hover {
    border-color: #00aa55;
    background: rgba(0,170,85,0.12);
}

.profile-stats {
    display: flex; justify-content: space-around;
    margin-top: 16px; padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.profile-stat {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.stat-val {
    font-size: 20px; font-weight: 700; color: #fff;
}
.stat-lbl {
    font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 0.5px;
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.profile-tab {
    flex: 1; background: none; border: none; color: #888;
    padding: 12px 8px; font-size: 13px; font-weight: 600;
    font-family: inherit; cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.profile-tab:hover { color: #ccc; }
.profile-tab.active { color: #00aa55; border-bottom-color: #00aa55; }

.profile-tab-content { display: none; }
.profile-tab-content.active { display: block; }

.profile-info-block { flex: 1; min-width: 0; }

.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    margin-right: 14px;
}
.avatar-upload-btn {
    position: absolute;
    bottom: -4px; right: -4px;
    width: 22px; height: 22px;
    background: #00aa55;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 10px; color: #fff;
    transition: background 0.2s, transform 0.15s;
    border: 2px solid #1a1a1a;
}
.avatar-upload-btn:hover { background: #00cc66; transform: scale(1.1); }

#avatarUploadProgress {
    font-size: 11px; color: #00aa55;
    text-align: center; padding: 4px 0;
    display: none;
}
.user-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    flex-shrink: 0;
    border: 2px solid rgba(0,170,85,0.4);
}

.site-footer {
    margin-top: 28px;
    padding: 0;
    border-top: 1px solid var(--border-color);
    background: #0f0f0f;
}
.site-footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}
.site-footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
}
.site-footer-tagline {
    margin-top: 8px;
    color: #cccccc;
    font-size: 13px;
    max-width: 280px;
    line-height: 1.5;
}
.site-footer-cols {
    display: flex;
    gap: 56px;
    flex-wrap: wrap;
}
.site-footer-col h4 {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.site-footer-col a {
    display: block;
    color: #cccccc;
    text-decoration: none;
    font-size: 13.5px;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}
.site-footer-col a:hover {
    color: #00aa55;
}
.site-footer-author {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 260px;
}
.site-footer-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #00aa55;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.site-footer-author-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.site-footer-author-text {
    color: #cccccc;
    font-size: 12.5px;
    line-height: 1.5;
    margin-top: 4px;
}
.site-footer-author-links {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.site-footer-author-links a {
    color: #cccccc;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.site-footer-author-links a:hover {
    color: #00aa55;
}
.site-footer-bottom {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 18px 0;
}
.site-footer-copy {
    color: #b9a7b2;
    font-size: 12.5px;
}
.site-footer-social {
    display: flex;
    gap: 10px;
}
.site-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #333333;
    color: #cccccc;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.site-footer-social a:hover {
    color: #ffffff;
    border-color: var(--accent-color);
    background: rgba(237,79,145,0.15);
}
.site-footer-copy span { margin-left: 12px; color: #796570; }
@media (max-width: 1080px) {
    .site-footer-top { flex-direction: column; }
}
@media (max-width: 768px) {
    .site-footer-inner { padding: 0 16px; }
    .site-footer-cols { gap: 32px; }
    .site-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Global pink accent overrides for shared header and authentication controls. */
.base-header { background: rgba(17, 17, 17, .96); border-color: var(--border-color); }
.nav-link:hover, .nav-link.active { background-color: rgba(237, 79, 145, .82); }
.dropdown-menu, .dropdown-menu::before { background-color: #171717; }
.dropdown-column a:hover, .search-btn:hover, .user-login-btn:hover, .modal-logo-icon, .modal-logo-text span { color: var(--accent-color); }
.dropdown-column a:hover { border-bottom-color: var(--accent-color); }
.search-box:focus-within { border-color: var(--accent-color); box-shadow: 0 0 0 2px rgba(237, 79, 145, .15); }
.auth-tab.active, ::-webkit-scrollbar-thumb { background: var(--accent-color); }
.auth-submit:hover, ::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }
.auth-submit:hover { box-shadow: 0 4px 16px rgba(237, 79, 145, .3); }
.input-group:focus-within { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(237, 79, 145, .12); }
html { background: #090909; }
@media (max-width: 768px) { .site-footer-copy span { display: none; } }

/* Profile — current Jurassic+ visual language */
#profileModal.show { background: rgba(0,0,0,.76); backdrop-filter: blur(3px); }
.profile-modal-content { width: 520px; max-height: min(82vh, 720px); border: 1px solid #302d2f; border-radius: 7px; background: #101010; box-shadow: 0 24px 60px rgba(0,0,0,.62); }
.profile-header { padding: 24px; border-bottom-color: #292729; background: #121212; }
.profile-avatar { width: 54px; height: 54px; border-radius: 6px; background: var(--accent-color); font-size: 22px; }
.profile-avatar img { border-radius: 6px !important; }
.profile-username { font-size: 18px; font-weight: 700; }
.profile-email { color: #8e858a; }
.modal-close#profileModalClose { top: 16px; right: 16px; border: 1px solid #302d2f; border-radius: 50%; background: #171717; }
.modal-close#profileModalClose:hover { border-color: #5a4650; background: #21191d; }
.profile-edit-btn { border: 1px solid #302d2f; border-radius: 5px; background: #171717; }
.profile-edit-btn:hover, .profile-edit-btn.active { border-color: rgba(237,79,145,.55); background: rgba(237,79,145,.08); color: var(--accent-color); }
.avatar-upload-btn { background: var(--accent-color); border-color: #121212; }
.avatar-upload-btn:hover { background: var(--accent-hover); }
.profile-save-btn { height: 42px; border-radius: 5px; background: var(--accent-color); }
.profile-save-btn:hover { background: var(--accent-hover); }
.avatar-emoji-opt.active, .avatar-emoji-opt:hover { border-color: var(--accent-color); background: rgba(237,79,145,.1); }
.profile-stats { gap: 8px; justify-content: flex-start; }
.profile-stat { flex: 1; padding: 10px 8px; border: 1px solid #292729; border-radius: 5px; background: #0e0e0e; }
.stat-val { font-size: 18px; }
.stat-lbl { color: #81777c; }
.profile-tabs { padding: 0 18px; border-bottom-color: #292729; background: #111; }
.profile-tab { flex: 0 0 auto; padding: 13px 16px 11px; color: #81777c; }
.profile-tab.active { color: var(--accent-color); border-bottom-color: var(--accent-color); }
.profile-body { padding: 12px 14px 16px; background: #0d0d0d; }
.profile-body::-webkit-scrollbar-thumb { background: #40383c; }
.profile-history { gap: 7px; }
.profile-history-loading { color: var(--accent-color); }
.profile-watch-item { min-height: 76px; margin: 0; padding: 8px; border: 1px solid #292729; border-radius: 5px; background: #131313; transition: border-color .2s ease, background .2s ease; }
.profile-watch-item:hover { border-color: #55414b; background: #171416; }
.profile-watch-poster, .profile-watch-poster-ph { width: 42px; height: 60px; border-radius: 3px; margin-right: 12px; }
.profile-watch-title { font-size: 12.5px; }
.profile-watch-sub { color: #8d8388; }
.profile-watch-btn { border-radius: 50%; background: rgba(237,79,145,.1); color: var(--accent-color); }
.profile-watch-item:hover .profile-watch-btn { background: var(--accent-color); color: #fff; }
.profile-watch-bar { right: 8px; left: 8px; height: 2px; background: #282326; }
.profile-watch-bar-fill { background: var(--accent-color); }
.profile-history-empty { min-height: 150px; color: #81777c; }
.profile-footer { padding: 12px 16px 16px; border-top-color: #292729; background: #101010; }
.profile-logout-btn { border-color: #302d2f; border-radius: 5px; }

@media (max-width: 600px) {
    .profile-modal-content { width: calc(100vw - 20px); max-height: 88vh; }
    .profile-header { padding: 20px 16px 16px; }
    .profile-tabs { padding: 0 8px; }
}

/* Account identity */
.header-admin-prefix,
.profile-admin-prefix {
    display: inline-flex;
    align-items: center;
    padding: 2px 5px;
    border: 1px solid rgba(237,79,145,.5);
    border-radius: 3px;
    color: var(--accent-color);
    background: rgba(237,79,145,.08);
    font: 8px/1.25 monospace;
    letter-spacing: .08em;
}

.header-admin-prefix { margin-left: 7px; }
.profile-name-line { display: flex; align-items: center; gap: 8px; }
.profile-meta { margin-top: 6px; color: #655e62; font: 9px/1.3 monospace; text-transform: uppercase; }

.profile-modal-content {
    width: 500px;
    max-height: min(84vh, 720px);
    border-radius: 7px;
    background:#101010;
}
.profile-header {
    padding:24px;
    background:#121212;
}
.profile-cover-mark { display:none; }
.profile-header-top { align-items:center; }
.profile-info-block { padding-top:0; }
.profile-account-label { margin-bottom:6px; color:var(--accent-color); font:8px monospace; letter-spacing:.1em; }
.profile-avatar-wrap { margin-right:14px; }
.profile-avatar { width:54px; height:54px; margin-right:0; border-radius:6px; font-size:22px; box-shadow:none; }
.profile-avatar img { border-radius:6px!important; }
.profile-username { font-size:18px; }
.profile-meta { margin-top:7px; }
.profile-edit-btn { align-self:center; }
.profile-edit-panel { margin-top:16px; padding:14px; border:1px solid #302a2d; border-radius:5px; background:#0e0e0e; }
.profile-stats { gap:8px; justify-content:flex-start; margin-top:16px; padding-top:14px; }
.profile-stat { align-items:center; padding:10px 8px; background:#0e0e0e; }
.profile-tabs { gap:0; padding:0 18px; background:#111; }
.profile-tab { flex:0 0 auto; padding:13px 16px 11px; border:0; border-bottom:2px solid transparent; border-radius:0; }
.profile-tab.active { border-bottom-color:var(--accent-color); background:transparent; }
.profile-body { padding:12px 14px 16px; }
.profile-history { display:flex; flex-direction:column; gap:7px; }
.profile-watch-item { min-height:74px; }
.profile-footer { display:flex; justify-content:space-between; gap:10px; }
.profile-footer > * { flex:1; }

.profile-admin-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #302d2f;
    border-radius: 5px;
    color: #a49ba0;
    background: #151515;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

.profile-admin-link .fa-arrow-right { margin-left:auto; color:#625b5f; font-size:9px; }
.profile-admin-link:hover { border-color:#51474c; color:#fff; background:#191719; }
.profile-admin-link:hover .fa-arrow-right { color:var(--accent-color); }
.profile-footer > .profile-admin-link { flex:1.25; }

@media (max-width: 600px) {
    .header-admin-prefix { display: none; }
    .profile-modal-content { width:calc(100vw - 16px); max-height:92vh; }
    .profile-header { padding:24px 18px 18px; }
    .profile-cover-mark { display:none; }
    .profile-avatar { width:56px; height:56px; }
    .profile-footer { flex-direction: column; }
}
