@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --pyre-orange: #FF6B35;
    --pyre-amber: #F7931E;
    --pyre-red: #E63946;
    --pyre-dark: #0D0D0D;
    --pyre-darker: #050505;
    --pyre-gray: #1A1A1A;
    --pyre-gray-light: #2A2A2A;
    --pyre-text: #FFFFFF;
    --pyre-text-muted: #8A8A8A;
    --pyre-gradient: linear-gradient(135deg, var(--pyre-orange) 0%, var(--pyre-red) 100%);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.2s ease;
    --pyre-success: #4CAF50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--pyre-darker);
    color: var(--pyre-text);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(230, 57, 70, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.page-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    height: 24px;
    width: auto;
    filter: invert(1);
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.extension-status {
    display: flex;
    align-items: center;
}

.extension-installed {
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
}

.extension-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    padding: 6px 10px;
    background: var(--pyre-gray-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 500;
    color: var(--pyre-text);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.extension-installed:hover .extension-tooltip {
    opacity: 1;
}

.extension-checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    color: #4CAF50;
}

.extension-not-installed {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--pyre-gray-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    font-size: 13px;
    font-weight: 500;
    color: var(--pyre-text);
    text-decoration: none;
    transition: var(--transition);
}

.extension-not-installed:hover {
    background: var(--pyre-gray);
    border-color: var(--pyre-orange);
    color: var(--pyre-orange);
}

.extension-chrome-icon {
    width: 16px;
    height: 16px;
}

html[data-pyre-extension="true"] .extension-installed {
    display: flex;
}

html[data-pyre-extension="true"] .extension-not-installed {
    display: none;
}

.main-layout {
    display: flex;
    padding-top: 70px;
    flex: 1;
    min-height: calc(100vh - 70px);
}

.main-content {
    flex: 1;
    min-width: 0;
    transition: padding-left 0.3s ease;
}

.main-content.with-sidebar {
    padding-left: 260px;
}

.sidebar-toggle {
    position: fixed;
    left: 0;
    top: 70px;
    width: 32px;
    height: 40px;
    background: #0A0A0A;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-left: none;
    border-radius: 0 8px 8px 0;
    color: var(--pyre-text-muted);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: var(--pyre-gray);
    color: var(--pyre-text);
}

.sidebar-toggle-inline {
    background: transparent;
    border: none;
    color: var(--pyre-text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition);
    margin-left: auto;
}

.sidebar-toggle-inline:hover {
    color: var(--pyre-text);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-toggle-icon {
    width: 20px;
    height: 20px;
    filter: invert(1);
    opacity: 0.6;
    transition: var(--transition);
}

.sidebar-toggle-arrow {
    position: absolute;
    opacity: 0;
    transition: var(--transition);
}

.sidebar-toggle:hover .sidebar-toggle-icon {
    opacity: 0;
}

.sidebar-toggle:hover .sidebar-toggle-arrow {
    opacity: 1;
}

.navigation-sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    width: fit-content;
    height: calc(100vh - 70px);
    background: #0A0A0A;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    overflow-y: auto;
    z-index: 998;
}

.navigation-sidebar-panel {
    padding: 20px;
    width: fit-content;
}

.navigation-sidebar-title-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navigation-sidebar-icon {
    width: 24px;
    height: 24px;
    filter: invert(1);
}

.navigation-sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--pyre-text);
}

.navigation-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.navigation-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #111111;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--pyre-text);
    transition: var(--transition);
}

.navigation-sidebar-item:hover {
    background: #1A1A1A;
}

.navigation-sidebar-item.friend-request {
    border: 1px solid rgba(255, 149, 0, 0.3);
}

.navigation-sidebar-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.navigation-sidebar-item-status {
    position: relative;
    width: 14px;
    height: 14px;
    margin-left: -20px;
    margin-bottom: -24px;
}

.navigation-sidebar-item-status-foreground {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #111111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navigation-sidebar-item-status-background {
    display: none;
}

.nagivation-sidebar-item-info {
    flex: 1;
    min-width: 0;
}

.navigation-sidebar-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navigation-sidebar-subtext {
    font-size: 12px;
    color: var(--pyre-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-loading,
.sidebar-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--pyre-text-muted);
    font-size: 14px;
}

.do-not-disturb-garnish {
    width: 6px;
    height: 2px;
    background: #111111;
    border-radius: 1px;
}

.away-garnish {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid #111111;
    margin-top: -2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--pyre-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--pyre-gray-light);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--pyre-gray);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--pyre-text-muted);
}

.btn-ghost:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.btn-large {
    padding: 16px 32px;
    font-size: 17px;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.landing {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    padding: 40px;
    position: relative;
}

.landing-hero {
    text-align: center;
    max-width: 600px;
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--pyre-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--pyre-text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.spark-mascot {
    position: fixed;
    bottom: 20px;
    right: 40px;
    width: 200px;
    opacity: 0.8;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    padding: 40px;
}

.login-card {
    background: var(--pyre-gray);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.signup-card {
    max-width: 480px;
}

.verify-card {
    max-width: 480px;
}

.login-logo {
    width: 70px;
    height: 70px;
    margin-bottom: 24px;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.signup-form {
    gap: 14px;
}

.form-group {
    text-align: left;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: var(--pyre-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: white;
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--pyre-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-input::placeholder {
    color: var(--pyre-text-muted);
}

.form-input.input-error {
    border-color: var(--pyre-red);
}

.form-input-small {
    width: 70px;
    padding: 12px 14px;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.birthday-row {
    flex-direction: column;
    gap: 8px;
}

.birthday-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--pyre-text-muted);
}

.form-select {
    flex: 1;
    padding: 14px 16px;
    background: var(--pyre-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: white;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238A8A8A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-select:focus {
    outline: none;
    border-color: var(--pyre-orange);
}

.form-select option {
    background: var(--pyre-dark);
    color: white;
}

.field-error {
    color: var(--pyre-red);
    font-size: 13px;
    margin-top: 6px;
}

.form-error {
    color: var(--pyre-red);
    font-size: 14px;
    text-align: left;
    padding: 8px 0;
}

.preferences-section {
    margin-top: 8px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--pyre-text);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--pyre-orange);
    cursor: pointer;
}

.tos-notice {
    font-size: 12px;
    color: var(--pyre-text-muted);
    text-align: center;
    line-height: 1.5;
}

.tos-notice a {
    color: var(--pyre-orange);
    text-decoration: none;
}

.tos-notice a:hover {
    text-decoration: underline;
}

.forgot-password-btn {
    margin-top: -4px;
    font-size: 14px;
}

.success-message {
    text-align: center;
    padding: 20px 0;
}

.success-message p {
    font-size: 18px;
    font-weight: 600;
    color: var(--pyre-success);
    margin-bottom: 12px;
}

.success-subtitle {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--pyre-text-muted) !important;
    line-height: 1.5;
}

.verify-content {
    text-align: center;
    padding: 20px 0;
}

.verify-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.verify-message {
    font-size: 16px;
    color: var(--pyre-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.verify-email-address {
    color: var(--pyre-orange);
    font-weight: 600;
}

.verify-status {
    font-size: 14px;
    color: var(--pyre-text);
    font-weight: 500;
    min-height: 21px;
    margin-bottom: 20px;
}

.verify-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.login-footer {
    margin-top: 24px;
    color: var(--pyre-text-muted);
    font-size: 14px;
}

.login-footer a {
    color: var(--pyre-orange);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.dashboard {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 32px;
}

.dashboard-title {
    font-size: 32px;
    font-weight: 700;
}

.watch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.watch-card {
    flex-shrink: 0;
    width: 320px;
    background: var(--pyre-gray);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.watch-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.watch-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.watch-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watch-card-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.watch-card-episode {
    color: var(--pyre-orange);
    font-weight: 500;
    font-size: 14px;
}

.watch-card-service {
    color: var(--pyre-text-muted);
    font-size: 14px;
    text-transform: capitalize;
}

.watch-card-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: var(--pyre-dark);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--pyre-gradient);
    border-radius: 2px;
}

.progress-time {
    font-size: 13px;
    color: var(--pyre-text-muted);
    font-variant-numeric: tabular-nums;
}

.watch-card-play {
    width: 50px;
    height: 50px;
    background: var(--pyre-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.watch-card-play:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.load-more-card {
    flex-shrink: 0;
    width: 160px;
    height: 100%;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 107, 53, 0.3);
    border-radius: var(--border-radius);
    color: var(--pyre-orange);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.load-more-card:hover:not(:disabled) {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--pyre-orange);
    transform: translateY(-2px);
}

.load-more-card:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.load-more-card.loading {
    flex-direction: column;
    gap: 8px;
    padding: 20px;
}

.load-more-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-top-color: var(--pyre-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px;
    gap: 20px;
    color: var(--pyre-text-muted);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--pyre-gray-light);
    border-top-color: var(--pyre-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 80px 40px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--pyre-text-muted);
}

.user-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 70px);
    padding: 40px;
}

.user-page, .error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.user-search-section {
    width: 100%;
    max-width: 500px;
    margin-bottom: 32px;
}

.user-search-container {
    display: flex;
    gap: 8px;
    background: var(--pyre-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 4px;
    transition: var(--transition);
}

.user-search-container:focus-within {
    border-color: var(--pyre-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.user-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: var(--pyre-text);
    font-family: inherit;
    font-size: 15px;
}

.user-search-input:focus {
    outline: none;
}

.user-search-input::placeholder {
    color: var(--pyre-text-muted);
}

.user-search-button {
    background: var(--pyre-gradient);
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.user-search-button:hover:not(:disabled) {
    transform: scale(1.05);
}

.user-search-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.search-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.search-results-container {
    width: 100%;
    max-width: 500px;
    margin-top: 24px;
}

.search-results-section {
    margin-bottom: 24px;
}

.search-results-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--pyre-text-muted);
    margin-bottom: 12px;
    text-align: left;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--pyre-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--pyre-gray-light);
}

.search-result-user {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--pyre-text);
}

.search-result-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.search-result-username {
    font-weight: 500;
}

.search-result-actions {
    display: flex;
    gap: 8px;
}

.search-result-action {
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.search-result-action.add {
    background: var(--pyre-gradient);
    color: white;
    font-size: 18px;
    padding: 8px 14px;
}

.search-result-action.add:hover {
    transform: scale(1.05);
}

.search-result-action.pending {
    background: var(--pyre-gray-light);
    color: var(--pyre-text-muted);
}

.search-result-action.pending:hover {
    background: var(--pyre-red);
    color: white;
}

.search-result-action.accept {
    background: var(--pyre-success);
    color: white;
    font-size: 16px;
    padding: 8px 12px;
}

.search-result-action.decline {
    background: var(--pyre-gray-light);
    color: var(--pyre-text-muted);
    font-size: 16px;
    padding: 8px 12px;
}

.search-result-action.decline:hover {
    background: var(--pyre-red);
    color: white;
}

.search-result-action.view-profile {
    background: var(--pyre-gray-light);
    color: var(--pyre-text);
}

.search-result-action.view-profile:hover {
    background: rgba(255, 255, 255, 0.15);
}

.search-no-results {
    text-align: center;
    padding: 24px;
    color: var(--pyre-text-muted);
    font-size: 14px;
}

.user-profile-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--pyre-gray-light);
    display: flex;
    justify-content: center;
    gap: 12px;
}

.friend-action-group {
    display: flex;
    gap: 12px;
}

.friend-action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
}

.friend-action-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.friend-action-btn.add {
    background: var(--pyre-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.friend-action-btn.add:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.4);
}

.friend-action-btn.remove {
    background: transparent;
    border: 1px solid var(--pyre-red);
    color: var(--pyre-red);
}

.friend-action-btn.remove:hover:not(:disabled) {
    background: var(--pyre-red);
    color: white;
}

.friend-action-btn.pending {
    background: var(--pyre-gray-light);
    color: var(--pyre-text-muted);
}

.friend-action-btn.pending:hover:not(:disabled) {
    background: var(--pyre-red);
    color: white;
}

.friend-action-btn.accept {
    background: var(--pyre-success);
    color: white;
}

.friend-action-btn.accept:hover:not(:disabled) {
    filter: brightness(1.1);
}

.friend-action-btn.decline {
    background: var(--pyre-gray-light);
    color: var(--pyre-text-muted);
}

.friend-action-btn.decline:hover:not(:disabled) {
    background: var(--pyre-red);
    color: white;
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.waiting-room {
    text-align: center;
}

.waiting-logo {
    width: 80px;
    margin-bottom: 24px;
}

.waiting-room h1 {
    font-size: 32px;
    margin-bottom: 16px;
}

.waiting-room p {
    color: var(--pyre-text-muted);
    margin-bottom: 24px;
}

.spark-waiting {
    width: 200px;
}

.error-icon {
    width: 100px;
    margin-bottom: 24px;
}

.error-page h1 {
    font-size: 32px;
    margin-bottom: 24px;
}

.user-profile-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spark-loading {
    width: 120px;
}

.user-not-found {
    text-align: center;
}

.user-not-found h1 {
    font-size: 32px;
    margin-bottom: 16px;
}

.user-not-found p {
    color: var(--pyre-text-muted);
    margin-bottom: 24px;
}

.user-profile-card {
    background: var(--pyre-gray);
    border-radius: 16px;
    padding: 32px;
    min-width: 320px;
    max-width: 400px;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--pyre-gray-light);
}

.user-profile-info {
    flex: 1;
}

.user-profile-name {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.user-profile-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--pyre-text-muted);
}

.status-online .status-indicator {
    background: var(--pyre-success);
}

.status-away .status-indicator {
    background: var(--pyre-amber);
}

.status-do-not-disturb .status-indicator {
    background: var(--pyre-red);
}

.status-offline .status-indicator {
    background: var(--pyre-text-muted);
}

.status-text {
    color: var(--pyre-text-muted);
    font-size: 14px;
}

.user-activity {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--pyre-gray-light);
}

.activity-label {
    display: block;
    color: var(--pyre-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.activity-media {
    display: block;
    font-size: 16px;
    color: var(--pyre-text);
}

.no-drag {
    user-select: none;
    -webkit-user-drag: none;
}

.dashboard-carousels {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.carousel-section {
    position: relative;
}

.carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 4px;
}

.carousel-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--pyre-text);
}

.carousel-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-search-toggle {
    background: transparent;
    border: none;
    color: var(--pyre-text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.carousel-search-toggle:hover {
    color: var(--pyre-text);
    background: rgba(255, 255, 255, 0.05);
}

.carousel-filter {
    width: 0;
    padding: 0;
    background: var(--pyre-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--pyre-text);
    font-family: inherit;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel-search.expanded .carousel-filter {
    width: 200px;
    padding: 10px 14px;
    opacity: 1;
}

.carousel-filter:focus {
    outline: none;
    border-color: var(--pyre-orange);
}

.carousel-container {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: visible;
}

.carousel-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--pyre-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--pyre-text);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.carousel-arrow:hover {
    background: var(--pyre-gray-light);
    border-color: var(--pyre-orange);
    color: var(--pyre-orange);
}

.carousel-track {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    padding: 8px 4px 150px 4px;
    margin-bottom: -150px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track.carousel-empty {
    justify-content: center;
    padding: 40px;
}

.carousel-no-results {
    color: var(--pyre-text-muted);
    font-size: 14px;
}

.watch-card-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.watch-card-episodes-expander {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    max-height: 24px;
    background: var(--pyre-gray);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    cursor: pointer;
    color: var(--pyre-text-muted);
    font-size: 10px;
    gap: 6px;
    overflow: hidden;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.15s ease 0.1s, max-height 0.15s ease 0.1s;
}

.watch-card-group:hover .watch-card-episodes-expander {
    opacity: 0;
    max-height: 0;
    pointer-events: none;
    transition: opacity 0.1s ease, max-height 0.1s ease;
}

.watch-card-episodes-expander:hover {
    background: var(--pyre-gray-light);
    color: var(--pyre-text);
}

.watch-card-episodes-expander-text {
    font-weight: 500;
    word-spacing: 0.15em;
}

.watch-card-group .watch-card {
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.watch-card-episodes-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.1s ease, opacity 0.1s ease;
    opacity: 0;
    z-index: 10;
    box-shadow: 0 12px 24px 8px rgba(0, 0, 0, 0.6);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.watch-card-group:hover .watch-card-episodes-dropdown {
    max-height: 500px;
    opacity: 1;
    transition: max-height 0.15s ease, opacity 0.15s ease;
}


.episode-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: var(--pyre-gray);
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid transparent;
    text-decoration: none;
    color: var(--pyre-text);
    transition: all 0.15s ease;
    position: relative;
}

.episode-row:first-child {
    border-top: none;
}

.episode-row:last-child {
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.episode-row:hover {
    background: var(--pyre-gray-light);
}

.episode-row:active {
    background: #333333;
}

.episode-row-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.episode-row-number {
    color: var(--pyre-orange);
    font-weight: 600;
    font-size: 13px;
    transition: all 0.15s ease;
}

.episode-row:hover .episode-row-number {
    color: #FF8B5A;
}

.episode-row-time {
    color: var(--pyre-text-muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    transition: color 0.15s ease;
}

.episode-row:hover .episode-row-time {
    color: var(--pyre-text);
}

.episode-row-progress {
    flex: 1;
    max-width: 200px;
}

.shorts-header-left,
.adult-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shorts-header-right,
.adult-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shorts-badge,
.adult-badge {
    font-size: 12px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--pyre-text-muted);
}

.shorts-toggle-btn,
.adult-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--pyre-text-muted);
    font-size: 13px;
    padding: 6px 14px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.shorts-toggle-btn:hover,
.adult-toggle-btn:hover {
    color: var(--pyre-text);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.shorts-toggle-btn.hidden-state,
.adult-toggle-btn.hidden-state {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    color: var(--pyre-orange);
}

.episode-count-badge {
    font-size: 11px;
    background: var(--pyre-orange);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 600;
}

.carousel-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hide-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--pyre-text-muted);
    font-size: 13px;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.hide-toggle:hover {
    color: var(--pyre-text);
    border-color: rgba(255, 255, 255, 0.2);
}

.hide-toggle-icon {
    font-size: 14px;
}

.shorts-hidden-message,
.adult-hidden-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: var(--pyre-text-muted);
    font-size: 14px;
}

.shorts-hidden-icon,
.adult-hidden-icon {
    font-size: 24px;
}

@media (max-width: 768px) {
    .topbar {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .spark-mascot {
        display: none;
    }
    
    .login-card {
        padding: 30px;
    }

    .signup-card {
        padding: 24px;
    }

    .form-row {
        flex-direction: column;
    }

    .birthday-inputs {
        width: 100%;
    }

    .birthday-inputs .form-select {
        flex: 2;
    }

    .birthday-inputs .form-input-small {
        flex: 1;
    }

    .verify-actions {
        flex-direction: column;
    }
    
    .dashboard {
        padding: 20px;
    }
    
    .watch-grid {
        grid-template-columns: 1fr;
    }
    
    .watch-card {
        width: 280px;
    }
    
    .carousel-arrow {
        display: none;
    }
}
