.content-area {
    padding: 38px 0 24px;
    background: #FFF5F0;
    min-height: 100vh;
    position: relative;
}

.work-detail-card {
    background: #FFFFFF;
    border-radius: 0;
    border: 4px solid #000000;
    overflow: hidden;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 2fr;
    gap: 32px;
    padding: 32px;
    position: relative;
    transition: none;
}

.work-detail-card:hover {
    border-color: #000000;
}

.work-cover-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.work-cover-wrapper {
    position: relative;
}

.work-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
    border-radius: 0;
}

.work-info-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.work-title {
    font-size: 24px;
    font-weight: 900;
    color: #000000;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #FFE5D9;
    border-radius: 0;
    border: 3px solid #000000;
    transition: none;
    position: relative;
}

.meta-item:hover {
    border-color: #000000;
}

.meta-value {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .work-detail-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .content-area {
        padding: 14px 16px 20px;
    }

    .work-detail-card {
        padding: 20px;
        margin-bottom: 20px;
        gap: 20px;
        border-radius: 12px;
    }

    .work-cover-column {
        align-items: center;
        text-align: center;
    }

    .work-title {
        font-size: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .content-area {
        padding: 10px 8px 16px;
    }

    .work-detail-card {
        padding: 16px;
        gap: 16px;
        margin: 0 4px 20px;
        border-radius: 8px;
    }

    .work-title {
        font-size: 18px;
        text-align: center;
    }

    .meta-item {
        padding: var(--spacing-md);
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
}

.work-detail-image-placeholder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    background: #F8F9FA !important;
    color: #ADB5BD !important;
    font-size: 48px !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    border-radius: inherit !important;
    z-index: 2 !important;
}

.work-detail-image-placeholder:hover {
    background: #E9ECEF !important;
    color: #6C757D !important;
}

@media (prefers-reduced-motion: reduce) {
    .work-cover,
    .meta-item {
        transition: none;
    }
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 700;
    transition: none;
    cursor: pointer;
    border: 2px solid #000000;
}

.va-tag {
    background: #C77DFF;
    color: #000000;
}

.va-tag:hover {
    background: #C77DFF;
    transform: translate(2px, 2px);
}

.series-tag {
    background: #7BDCB5;
    color: #000000;
}

.series-tag:hover {
    background: #7BDCB5;
    transform: translate(2px, 2px);
}

.genre-tag {
    background: #FF6B9D;
    color: #000000;
}

.genre-tag:hover {
    background: #FF6B9D;
    transform: translate(2px, 2px);
}

.tag:not(.va-tag):not(.series-tag):not(.genre-tag) {
    background: #F9DC5C;
    color: #000000;
}

.tag:not(.va-tag):not(.series-tag):not(.genre-tag):hover {
    background: #F9DC5C;
    transform: translate(2px, 2px);
}

.resources-section {
    background: #FFFFFF;
    border-radius: 0;
    border: 4px solid #000000;
    overflow: hidden;
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: #FFF5E1;
    border-bottom: 4px solid #000000;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 900;
    color: #000000;
    margin: 0;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.favorite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #FF6B9D !important;
    color: #FFFFFF !important;
    border: 3px solid #000000;
    border-radius: 0;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: none;
    text-transform: uppercase;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    margin-right: 8px;
    position: relative;
    overflow: hidden;
}

.favorite-btn:hover {
    background: #FF4D7D !important;
    transform: translate(2px, 2px);
}

.favorite-btn:active {
    transform: translate(4px, 4px);
}

.favorite-btn[data-favorited="true"] {
    background: #FEE440 !important;
    color: #000000 !important;
    animation: favoritePulse 0.4s ease-out;
}

.favorite-btn[data-favorited="true"]:hover {
    background: #FDD000 !important;
}

.favorite-btn .favorite-icon {
    font-size: 16px;
    transition: none;
}

.favorite-btn[data-favorited="true"] .favorite-icon {
    animation: favoriteHeartBeat 0.4s ease-out;
}

@keyframes favoritePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes favoriteHeartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.1);
    }
    75% {
        transform: scale(1.2);
    }
}

.favorite-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.favorite-btn:disabled:hover {
    transform: translate(0, 0);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #00BBF9;
    color: #000000;
    border: 3px solid #000000;
    border-radius: 0;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: none;
    text-transform: uppercase;
}

.download-btn:hover {
    background: #00BBF9;
    transform: translate(2px, 2px);
}

.download-btn iconify-icon {
    font-size: 16px;
}

.access-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #00F5D4;
    color: #000000;
    border-radius: 0;
    font-size: 14px;
    font-weight: 900;
    border: 3px solid #000000;
    backdrop-filter: none;
    transition: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.access-badge:hover {
    transform: translate(2px, 2px);
}

.access-badge iconify-icon {
    font-size: 16px;
}

.locked-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #FF6B6B !important;
    color: #FFFFFF !important;
    border-radius: 0;
    font-size: 14px;
    font-weight: 900;
    border: 3px solid #000000;
    backdrop-filter: none;
    transition: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.locked-badge:hover {
    transform: translate(2px, 2px);
    background: #FF4D4D !important;
}

.locked-badge iconify-icon {
    font-size: 16px;
}

@media (max-width: 768px) {
    .section-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row-reverse;
        flex-wrap: wrap;
        gap: 8px;
    }

    .favorite-btn {
        font-size: 12px;
        padding: 8px 16px;
        gap: 6px;
        margin-right: 0;
    }

    .favorite-btn:hover {
    }

    .favorite-btn .favorite-icon {
        font-size: 14px;
    }

    .access-badge, .locked-badge {
        font-size: 12px;
        padding: 6px 12px;
        gap: 4px;
        order: 1;
    }

    .download-btn {
        order: 2;
    }
}

@media (max-width: 480px) {
    .favorite-btn {
        font-size: 11px;
        padding: 6px 12px;
        gap: 4px;
    }

    .favorite-btn:hover {
    }

    .favorite-btn .favorite-icon {
        font-size: 12px;
    }

    .access-badge, .locked-badge {
        font-size: 11px;
        padding: 5px 10px;
        border-radius: 16px;
    }

    .access-badge iconify-icon, .locked-badge iconify-icon {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .access-badge, .locked-badge {
        transition: none;
    }

    .access-badge::before, .locked-badge::before {
        display: none;
    }

    .access-badge:hover, .locked-badge:hover {
        transform: none;
    }
}

#imageModal, #textModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 245, 240, 0.95);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: none;
}

#imageModal.show, #textModal.show {
    opacity: 1;
}

#imageModal .modal-content {
    position: relative;
    width: 900px;
    height: 700px;
    max-width: 95vw;
    max-height: 95vh;
    background: #FFFFFF;
    border-radius: 0;
    border: 4px solid #000000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#imageModal .modal-content img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 0;
    object-fit: contain;
    border: 3px solid #000000;
}

.text-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    color: #64748b;
    font-size: 14px;
    gap: 10px;
}

.text-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#textModal .modal-content {
    position: relative;
    width: 1000px;
    height: 800px;
    max-width: 95vw;
    max-height: 95vh;
    background: #FFFFFF;
    border-radius: 0;
    border: 4px solid #000000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#textModal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 20px;
    border-bottom: 4px solid #000000;
    background: #FFE5D9;
    border-radius: 0;
}

#textModal .modal-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    text-transform: uppercase;
}

#textModal .modal-header h2::before {
    content: '📄';
    font-size: 14px;
}

#textModal .modal-body {
    flex: 1;
    padding: 24px 28px;
    overflow-y: auto;
    background: #FFFFFF;
    min-height: 0;
}

#textModal .modal-body pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #000000;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: #FFF9F0;
    padding: 20px;
    border-radius: 0;
    border: 3px solid #000000;
}

.image-modal-close, .text-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #FF6B6B;
    border: 3px solid #000000;
    color: #FFFFFF;
    cursor: pointer;
    padding: 12px;
    border-radius: 0;
    font-size: 18px;
    line-height: 1;
    transition: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    z-index: 10;
}

.image-modal-close:hover, .text-modal-close:hover {
    background: #FF4D4D;
    border-color: #000000;
    color: #FFFFFF;
    transform: translate(2px, 2px);
}

.image-modal-close:active, .text-modal-close:active {
    transform: translate(4px, 4px);
}

#textModal .text-modal-close {
    position: static;
    background: #FF6B6B;
    border: 3px solid #000000;
    color: #FFFFFF;
    cursor: pointer;
    padding: 8px;
    border-radius: 0;
    font-size: 16px;
    line-height: 1;
    transition: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    #imageModal .modal-content {
        width: 800px;
        height: 600px;
    }

    #textModal .modal-content {
        width: 900px;
        height: 700px;
    }
}

@media (max-width: 768px) {
    #imageModal, #textModal {
        padding: 10px;
    }

    #imageModal .modal-content {
        width: 95vw;
        height: 70vh;
        max-width: 95vw;
        max-height: 70vh;
        padding: 15px;
    }

    #textModal .modal-content {
        width: 95vw;
        height: 80vh;
        max-width: 95vw;
        max-height: 80vh;
    }

    #textModal .modal-header {
        padding: 16px;
    }

    #textModal .modal-header h2 {
        font-size: 14px;
    }

    #textModal .modal-body {
        padding: 16px;
    }

    #textModal .modal-body pre {
        font-size: 13px;
        padding: 16px;
    }

    .image-modal-close, .text-modal-close {
        width: 36px;
        height: 36px;
        font-size: 16px;
        top: 12px;
        right: 12px;
    }

    #textModal .text-modal-close {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #imageModal, #textModal {
        padding: 8px;
    }

    #imageModal .modal-content {
        width: 96vw;
        height: 65vh;
        max-width: 96vw;
        max-height: 65vh;
        padding: 12px;
        border: 3px solid #000000;
    }

    #textModal .modal-content {
        width: 96vw;
        height: 75vh;
        max-width: 96vw;
        max-height: 75vh;
        border: 3px solid #000000;
    }

    #textModal .modal-header {
        padding: 12px;
        border-bottom: 3px solid #000000;
    }

    #textModal .modal-header h2 {
        font-size: 13px;
    }

    #textModal .modal-body {
        padding: 12px;
    }

    #textModal .modal-body pre {
        font-size: 12px;
        padding: 12px;
        border: 2px solid #000000;
    }

    .image-modal-close, .text-modal-close {
        width: 32px;
        height: 32px;
        font-size: 14px;
        top: 8px;
        right: 8px;
        border: 2px solid #000000;
    }

    #textModal .text-modal-close {
        width: 26px;
        height: 26px;
        font-size: 12px;
        border: 2px solid #000000;
    }
}

@media (prefers-reduced-motion: reduce) {
    .image-modal-close, .text-modal-close {
        transition: none;
    }

    .image-modal-close:hover, .text-modal-close:hover {
        transform: none;
    }
}

.tabs-wrapper {
    background: transparent;
}

.tab-content-wrapper {
    background: transparent;
    padding: 0;
}

.folders-list {
    padding: 16px 28px 20px;
}

.folder-item {
    margin-bottom: 16px;
    background: #FFFFFF;
    border-radius: 0;
    border: 3px solid #000000;
    overflow: hidden;
    transition: none;
}

.folder-item:hover {
    border-color: #000000;
}

.folder-item:last-child {
    margin-bottom: 0;
}

.folder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #FEE440;
    border-bottom: 3px solid #000000;
    cursor: pointer;
    transition: none;
}

.folder-header:hover {
    background: #FEE440;
}

.folder-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.folder-title iconify-icon {
    font-size: 20px;
    color: #007BFF;
}

.folder-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.folder-count {
    font-size: 13px;
    color: #000000;
    padding: 4px 12px;
    background: #FFFFFF;
    border-radius: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
    border: 2px solid #000000;
}

.folder-toggle {
    font-size: 16px;
    color: #ADB5BD;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 28px 28px;
    background: transparent;
}

.folder-content {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px 24px;
    background: #FFF9F0;
    margin: 0;
}

.track-item {
    background: #FFFFFF;
    border-radius: 0;
    padding: 16px;
    border: 3px solid #000000;
    transition: none;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.track-item:hover {
    transform: translate(2px, 2px);
    border-color: #000000;
}

.track-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.track-title {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    letter-spacing: -0.01em;
}

.track-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6C757D;
}

.track-size {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #FFE5EC;
    color: #000000;
    border-radius: 0;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.01em;
    border: 2px solid #000000;
}

.track-duration {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #E0F9FF;
    color: #000000;
    border-radius: 0;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.01em;
    border: 2px solid #000000;
}

.download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #00BBF9;
    color: #000000;
    border-radius: 0;
    text-decoration: none;
    transition: none;
    margin-left: auto;
    border: 2px solid #000000;
}

.download-link:hover {
    background: #00BBF9;
    transform: translate(1px, 1px);
}

.download-link iconify-icon {
    font-size: 12px;
}

.locked-item {
    opacity: 0.6;
    cursor: not-allowed;
}

.locked-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.8);
    border-radius: inherit;
    pointer-events: none;
}

.lock-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 14px;
    color: #FFFFFF;
    background: #FF6B6B;
    border-radius: 0;
    border: 2px solid #000000;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.locked-text {
    color: #FFFFFF;
    font-weight: 900;
    font-size: 10px;
    padding: 3px 8px;
    background: #FF6B6B;
    border-radius: 0;
    border: 2px solid #000000;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

@media (prefers-contrast: high) {
    .work-detail-card,
    .meta-item {
        border: 2px solid var(--text-primary);
    }

    .tag {
        border: 2px solid currentColor;
    }

    .track-item {
        border: 2px solid var(--text-primary);
    }
}

@media (min-width: 1200px) {
    .files-list,
    .folder-content {
        gap: 10px;
    }

    .files-list {
        padding: 28px;
    }

    .folder-content {
        padding: 24px 28px 28px;
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .files-list,
    .folder-content {
        gap: 8px;
    }

    .files-list {
        padding: 20px;
    }

    .folder-content {
        padding: 16px 20px 20px;
    }
}

@media (max-width: 767px) and (min-width: 480px) {
    .resources-section {
        border-radius: 12px;
        margin: 0 12px 20px;
    }

    .section-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .section-title {
        font-size: 16px;
    }

    .files-list,
    .folder-content {
        gap: 8px;
    }

    .files-list {
        padding: 16px 20px 20px;
    }

    .folders-list {
        padding: 0 20px 16px;
    }

    .folder-content {
        padding: 12px 16px 16px;
    }

    .track-item {
        padding: 12px;
    }

    .track-title {
        font-size: 13px;
    }

    .track-meta {
        gap: 6px;
        font-size: 11px;
    }
}

@media (max-width: 479px) {
    .resources-section {
        border-radius: 8px;
        margin: 0 8px 16px;
    }

    .section-header {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .section-title {
        font-size: 15px;
    }

    .download-btn {
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 6px;
    }

    .download-btn iconify-icon {
        font-size: 14px;
    }

    .files-list,
    .folder-content {
        gap: 6px;
    }

    .files-list {
        padding: 12px 16px 16px;
    }

    .folders-list {
        padding: 0 16px 12px;
    }

    .folder-content {
        padding: 8px 12px 12px;
    }

    .folder-header {
        padding: 16px;
    }

    .folder-title {
        font-size: 15px;
    }

    .folder-count {
        font-size: 12px;
    }

    .track-item {
        padding: 12px;
    }

    .track-item:hover {
        transform: translateY(-1px);
    }

    .track-title {
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .track-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        font-size: 11px;
    }

    .download-link {
        width: 20px;
        height: 20px;
        position: absolute;
        top: 8px;
        right: 8px;
    }

    .download-link iconify-icon {
        font-size: 10px;
    }

    .lock-overlay {
        width: 20px;
        height: 20px;
        font-size: 12px;
        top: 8px;
        right: 8px;
    }
}

.track-item[data-type="audio"] {
    border-left: 6px solid #00BBF9;
}

.track-item[data-type="image"] {
    border-left: 6px solid #00F5D4;
}

.track-item[data-type="text"] {
    border-left: 6px solid #C77DFF;
}

.track-item[data-type="video"] {
    border-left: 6px solid #F9DC5C;
}

.track-item[data-type="other"] {
    border-left: 6px solid #FF6B9D;
}

.track-item:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.files-list:empty::after,
.folder-content:empty::after {
    content: '暂无资源文件';
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1;
    padding: 60px 40px;
    color: #6C757D;
    font-size: 14px;
    font-weight: 700;
    background: #FFF9F0;
    border-radius: 0;
    border: 3px dashed #000000;
    position: relative;
}

.files-list:empty::before,
.folder-content:empty::before {
    content: '📂';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    opacity: 0.4;
}

.track-meta iconify-icon {
    color: #6C757D;
    opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
    .track-item,
    .download-link,
    .folder-header {
        transition: none;
    }

    .track-item:hover,
    .download-link:hover {
        transform: none;
    }

    .track-item:active {
        transform: none;
    }
}

.track-item:focus {
    outline: 2px solid #007BFF;
    outline-offset: 1px;
}

.download-link:focus {
    outline: 2px solid #007BFF;
    outline-offset: 1px;
}

.track-item.selected {
    background: #F8F9FF;
    border-color: #007BFF;
}

.track-item.selected .track-title {
    color: #007BFF;
}

.track-item.loading {
    opacity: 0.5;
    pointer-events: none;
    background: #FAFBFC;
    border-color: #F1F3F4;
    animation: pulse 1.5s ease-in-out infinite;
}

.track-item.loading .track-title,
.track-item.loading .track-meta {
    color: #ADB5BD;
}

@media print {
    .files-list,
    .folder-content {
        display: block;
        background: none;
        border: none;
    }

    .track-item {
        break-inside: avoid;
        background: none;
        border: 1px solid #000;
        margin-bottom: 8px;
        padding: 8px;
    }

    .download-link,
    .lock-overlay {
        display: none;
    }
}

.folder-content {
    overflow: hidden;
}

.folder-content[style*="display: none"] {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.folder-header[data-expanded="true"] .folder-toggle {
    transform: rotate(180deg);
}

.track-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(0, 123, 255, 0.01) 0%,
        rgba(0, 123, 255, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    border-radius: inherit;
}

.track-item:hover::after {
    opacity: 1;
}

.track-size,
.track-duration {
    border: 1px solid #E9ECEF;
    transition: all 0.15s ease;
}

.track-size:hover,
.track-duration:hover {
    background: #E9ECEF;
    border-color: #DEE2E6;
}

.download-link {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-link:hover {
}

.locked-item {
    position: relative;
}

.locked-item .track-title {
    color: #ADB5BD;
}

.locked-item .track-size,
.locked-item .track-duration {
    background: #F1F3F4;
    color: #ADB5BD;
    border-color: #E9ECEF;
}

.download-btn:active {
    opacity: 0.8;
}

.folder-header:active {
    opacity: 0.9;
}

.track-item:focus-visible {
    outline: 2px solid #007BFF;
    outline-offset: 2px;
    border-radius: 8px;
}

.download-btn:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}

.folder-header:focus-visible {
    outline: 2px solid #007BFF;
    outline-offset: 2px;
    border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
    .resources-section,
    .track-item {
        animation: none;
    }

    .download-btn:active,
    .folder-header:active {
        transform: none;
    }
}


.download-progress-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 400px;
    background: #FFFFFF;
    border: 4px solid #000000;
    z-index: 10000;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.download-progress-float.minimized {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
}

.download-progress-float.minimized .download-progress-body {
    display: none;
}

.download-progress-float.minimized .download-progress-header {
    padding: 0;
    justify-content: center;
    height: 100%;
    cursor: pointer;
}

.download-progress-float.minimized .download-progress-title {
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.download-progress-float.minimized .download-progress-count {
    display: none;
}

.download-progress-float.minimized .download-progress-actions {
    display: none;
}

.download-progress-float.minimized iconify-icon {
    font-size: 32px;
}

.download-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #FFE5D9;
    border-bottom: 3px solid #000000;
    cursor: pointer;
    user-select: none;
}

.download-progress-header:hover {
    background: #FFD4BD;
}

.download-progress-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #000000;
    font-size: 16px;
}

.download-progress-title iconify-icon {
    font-size: 20px;
    color: #000000;
}

.download-progress-actions {
    display: flex;
    gap: 8px;
}

.download-progress-action-btn {
    width: 32px;
    height: 32px;
    border: 3px solid #000000;
    background: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.download-progress-action-btn:hover {
    background: #00F5D4;
    transform: translateY(-2px);
}

.download-progress-action-btn iconify-icon {
    font-size: 18px;
    color: #000000;
}

.download-progress-body {
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.download-progress-body::-webkit-scrollbar {
    width: 8px;
}

.download-progress-body::-webkit-scrollbar-track {
    background: #FFE5D9;
}

.download-progress-body::-webkit-scrollbar-thumb {
    background: #000000;
    border: 2px solid #FFE5D9;
}

.download-progress-body::-webkit-scrollbar-thumb:hover {
    background: #00F5D4;
}

.download-progress-list {
    display: flex;
    flex-direction: column;
}

.download-item {
    padding: 16px 20px;
    border-bottom: 3px solid #000000;
    background: #FFFFFF;
    transition: background 0.2s;
}

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

.download-item.waiting {
    background: #FFFEF0;
}

.download-item.completed {
    background: #E8FFF5;
}

.download-item.failed {
    background: #FFE5E5;
}

.download-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.download-file-name {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    word-break: break-all;
    line-height: 1.4;
    flex: 1;
}

.download-item-status {
    font-size: 12px;
    font-weight: 900;
    color: #000000;
    text-transform: uppercase;
    margin-left: 12px;
}

.download-progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.download-progress-bar {
    flex: 1;
    height: 8px;
    background: #FFE5D9;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    border: 2px solid #000000;
}

.download-progress-fill {
    height: 100%;
    background: #00F5D4;
    border-radius: 0;
    transition: width 0.3s ease;
    position: relative;
}

.download-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.download-progress-text {
    font-size: 12px;
    font-weight: 900;
    color: #000000;
    min-width: 45px;
    text-align: right;
}

@media (max-width: 768px) {
    .download-progress-float {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }

    .download-progress-float.minimized {
        width: 56px;
        height: 56px;
        right: 16px;
        left: auto;
    }

    .download-progress-header {
        padding: 12px 16px;
    }

    .download-progress-title {
        font-size: 14px;
    }

    .download-progress-body {
        max-height: 300px;
    }

    .download-item {
        padding: 12px 16px;
    }

    .download-item-header {
        margin-bottom: 10px;
    }

    .download-file-name {
        font-size: 13px;
    }

    .download-item-status {
        font-size: 11px;
    }

    .download-progress-bar {
        height: 6px;
    }

    .download-progress-text {
        font-size: 11px;
        min-width: 40px;
    }

}


.folder-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 245, 240, 0.95);

    opacity: 0;
    visibility: hidden;
    transition: none;
}

.folder-modal.show {
    opacity: 1;
    visibility: visible;
}

.folder-modal-content {
    position: relative;
    width: 800px;
    max-width: 95vw;
    max-height: 90vh;
    background: #FFFFFF;
    border-radius: 0;
    border: 4px solid #000000;
    overflow: hidden;

    transition: none;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.5;
}

.folder-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #FEE440;
    border-bottom: 4px solid #000000;
}

.folder-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 900;
    color: #000000;
    text-transform: uppercase;
}

.folder-icon {
    font-size: 20px;
    color: #007BFF;
}

.folder-modal-close {
    width: 32px;
    height: 32px;
    border: 3px solid #000000;
    background: #FF6B6B;
    border-radius: 0;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: none;
}

.folder-modal-close:hover {
    background: #FF4D4D;
    transform: translate(2px, 2px);
}

.folder-modal-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #FFF9F0;
    border-bottom: 3px solid #000000;
    flex-wrap: wrap;
    gap: 16px;
}

.folder-select-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.folder-checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.folder-checkbox-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.folder-select-text {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.folder-selected-count {
    font-size: 14px;
    color: #6B7280;
}

.folder-action-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.folder-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 3px solid #000000;
    border-radius: 0;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: none;
    text-transform: uppercase;
}

.folder-btn-download {
    background: #00BBF9;
    color: #000000;
}

.folder-btn-download:hover:not(:disabled) {
    background: #00BBF9;
    transform: translate(2px, 2px);
}

.folder-btn-download:disabled {
    background: #ADB5BD;
    cursor: not-allowed;
    opacity: 0.6;
}

.folder-btn-cancel {
    background: #6C757D;
    color: #FFFFFF;
}

.folder-btn-cancel:hover {
    background: #5A6268;
    transform: translate(2px, 2px);
}

.folder-content-area {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.folder-file-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    background: #FFFFFF;
}

.folder-item {
    margin-bottom: 16px;
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E9ECEF;
    transition: all 0.2s ease;
}

.folder-item:hover {

    border-color: #DEE2E6;
}

.folder-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #FFFFFF;
    border-bottom: 1px solid #F8F9FA;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.folder-item-header:hover {
    background: #FAFBFC;
}

.folder-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.folder-item-icon {
    font-size: 20px;
    color: #007BFF;
    transition: all 0.2s ease;
}

.folder-item.expanded .folder-item-icon {
    color: #0056B3;
}

.folder-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #1E293B;
}

.folder-item-count {
    font-size: 12px;
    color: #6B7280;
    background: #F8F9FA;
    padding: 4px 8px;
    border-radius: 4px;
}

.folder-expand-icon {
    font-size: 16px;
    color: #6C757D;
    transition: all 0.2s ease;
}

.folder-item.expanded .folder-expand-icon {
    transform: rotate(180deg);
    color: #007BFF;
}

.folder-files-container {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #FAFBFC;
}

.folder-item.expanded .folder-files-container {
    max-height: 400px;
}

.folder-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid #F8F9FA;
    transition: all 0.2s ease;
    cursor: pointer;
}

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

.folder-file-item:hover {
    background: #F8F9FA;
}

.folder-file-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.folder-file-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.folder-file-info {
    flex: 1;
    display: flex;
    align-items: center;
}

.folder-file-details {
    flex: 1;
}

.folder-file-name {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 2px;
}

.folder-file-size {
    font-size: 12px;
    color: #6B7280;
}

@media (max-width: 768px) {
    .folder-modal-content {
        width: 95vw;
        max-height: 85vh;
        font-size: 14px;
    }

    .folder-modal-header {
        padding: 16px 20px;
    }

    .folder-modal-title {
        font-size: 16px;
    }

    .folder-modal-controls {
        padding: 12px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .folder-select-controls {
        justify-content: space-between;
    }

    .folder-select-text {
        font-size: 13px;
    }

    .folder-selected-count {
        font-size: 13px;
    }

    .folder-action-controls {
        justify-content: center;
    }

    .folder-btn {
        font-size: 13px;
        padding: 7px 14px;
    }

    .folder-file-list {
        padding: 16px 20px;
    }

    .folder-item-header {
        padding: 16px 20px;
    }

    .folder-item-name {
        font-size: 15px;
    }

    .folder-item-count {
        font-size: 11px;
    }

    .folder-file-item {
        padding: 12px 20px;
    }

    .folder-file-name {
        font-size: 13px;
    }

    .folder-file-size {
        font-size: 11px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .folder-modal-content {
        width: 90vw;
        max-width: 700px;
        font-size: 14px;
    }

    .folder-modal-title {
        font-size: 17px;
    }

    .folder-btn {
        font-size: 13px;
        padding: 7px 14px;
    }

    .folder-item-name {
        font-size: 15px;
    }

    .folder-file-name {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .folder-modal-content {
        width: 98vw;
        max-height: 90vh;
        font-size: 13px;
        border-radius: 12px;
    }

    .folder-modal-header {
        padding: 12px 16px;
    }

    .folder-modal-title {
        font-size: 15px;
        gap: 8px;
    }

    .folder-icon {
        font-size: 18px;
    }

    .folder-modal-close {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .folder-modal-controls {
        padding: 10px 16px;
        gap: 10px;
    }

    .folder-select-text,
    .folder-selected-count {
        font-size: 12px;
    }

    .folder-btn {
        font-size: 12px;
        padding: 6px 12px;
        gap: 4px;
    }

    .folder-file-list {
        padding: 12px 16px;
    }

    .folder-item-header {
        padding: 12px 16px;
    }

    .folder-item-name {
        font-size: 14px;
    }

    .folder-item-count {
        font-size: 10px;
        padding: 3px 6px;
    }

    .folder-item-icon {
        font-size: 18px;
    }

    .folder-expand-icon {
        font-size: 14px;
    }

    .folder-file-item {
        padding: 10px 16px;
    }

    .folder-file-name {
        font-size: 12px;
    }

    .folder-file-size {
        font-size: 10px;
    }

    .folder-file-checkbox input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 360px) {
    .folder-modal-content {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        font-size: 12px;
    }

    .folder-modal-header {
        padding: 10px 12px;
    }

    .folder-modal-title {
        font-size: 14px;
        gap: 6px;
    }

    .folder-icon {
        font-size: 16px;
    }

    .folder-modal-close {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .folder-modal-controls {
        padding: 8px 12px;
        gap: 8px;
    }

    .folder-select-text,
    .folder-selected-count {
        font-size: 11px;
    }

    .folder-btn {
        font-size: 11px;
        padding: 5px 10px;
    }

    .folder-file-list {
        padding: 8px 12px;
    }

    .folder-item-header {
        padding: 10px 12px;
    }

    .folder-item-name {
        font-size: 13px;
    }

    .folder-item-count {
        font-size: 9px;
        padding: 2px 4px;
    }

    .folder-file-item {
        padding: 8px 12px;
    }

    .folder-file-name {
        font-size: 11px;
    }

    .folder-file-size {
        font-size: 9px;
    }

    .folder-file-checkbox input[type="checkbox"] {
        width: 12px;
        height: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .folder-modal,
    .folder-modal-content,
    .folder-item,
    .folder-file-item,
    .folder-btn {
        transition: none;
    }

    .folder-expand-icon {
        transform: none !important;
    }
}

.rainbow-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #FFFFFF;
    border-top: 4px solid #000000;
    transform: translateY(100%);
    transition: none;
}

.rainbow-player.show {
    transform: translateY(0);
}

.rainbow-player.minimized {
    height: auto;
}

.rainbow-player.minimized .rainbow-body {
    display: none !important;
}

.rainbow-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #C77DFF;
    border-bottom: 4px solid #000000;
}

.rainbow-info {
    flex: 1;
}

.rainbow-title {
    font-size: 18px;
    font-weight: 900;
    color: #000000;
    margin: 0 0 4px 0;
    text-transform: uppercase;
}

.rainbow-source {
    font-size: 14px;
    font-weight: 700;
    color: #000000;
}

.rainbow-close {
    width: 32px;
    height: 32px;
    border: 3px solid #000000;
    background: #FF6B6B;
    border-radius: 0;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: none;
}

.rainbow-close:hover {
    background: #FF4D4D;
    transform: translate(2px, 2px);
}

.rainbow-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rainbow-btn {
    width: 32px;
    height: 32px;
    border: 3px solid #000000;
    background: #FFFFFF;
    border-radius: 0;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: none;
}

.rainbow-btn:hover {
    background: #F9DC5C;
    transform: translate(2px, 2px);
}

.rainbow-btn.active {
    background: #00BBF9;
    color: #000000;
}

.rainbow-body {
    padding: 16px 24px 20px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.rainbow-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rainbow-control {
    width: 40px;
    height: 40px;
    border: 3px solid #000000;
    border-radius: 0;
    background: #FFFFFF;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: none;
}

.rainbow-control:hover {
    background: #FFE5D9;
    transform: translate(2px, 2px);
}

.rainbow-play {
    width: 48px;
    height: 48px;
    background: #00F5D4;
    color: #000000;
    font-size: 20px;
    border: 3px solid #000000;
}

.rainbow-play:hover {
    background: #00F5D4;
    transform: translate(2px, 2px);
}

.rainbow-progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rainbow-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6B7280;
}

.rainbow-progress-bar {
    height: 8px;
    background: #FFE5D9;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    border: 3px solid #000000;
}

.rainbow-progress-bar:hover {
    height: 8px;
    transition: none;
}

.rainbow-progress-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.rainbow-cache-fill {
    height: 100%;
    background: rgba(0, 245, 212, 0.3);
    border-radius: 0;
    width: 0%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: none;
    will-change: width;
}

.rainbow-progress-fill {
    height: 100%;
    background: #00F5D4;
    border-radius: 0;
    width: 0%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    will-change: width;
}

.rainbow-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.rainbow-volume .rainbow-control {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.rainbow-volume-bar {
    width: 80px;
    height: 6px;
    background: #FFE5D9;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    border: 2px solid #000000;
}

.rainbow-volume-bar:hover {
    height: 6px;
    transition: none;
}

.rainbow-volume-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.rainbow-volume-fill {
    height: 100%;
    background: #00F5D4;
    border-radius: 0;
    width: 100%;
    transition: none;
}

@media (max-width: 768px) {
    .rainbow-header {
        padding: 12px 16px;
    }

    .rainbow-title {
        font-size: 14px;
    }

    .rainbow-source {
        font-size: 12px;
    }

    .rainbow-body {
        padding: 12px 16px 16px 16px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .rainbow-controls {
        gap: 8px;
        flex-shrink: 0;
    }

    .rainbow-control {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .rainbow-play {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .rainbow-progress {
        flex: 1;
        min-width: 200px;
        order: 3;
        width: 100%;
    }

    .rainbow-time {
        font-size: 12px;
        font-weight: 900;
        color: #000000;
        justify-content: space-between;
        margin-bottom: 8px;
    }

    .rainbow-time span {
        display: inline-block;
        min-width: 40px;
        text-align: center;
        background: #FFE5D9;
        padding: 2px 6px;
        border-radius: 0;
        border: 2px solid #000000;
    }

    .rainbow-volume {
        min-width: 80px;
        flex-shrink: 0;
    }

    .rainbow-volume .rainbow-control {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .rainbow-volume-bar {
        width: 50px;
    }
}

.rainbow-playlist {
    background: #FFFFFF;
    border-top: 4px solid #000000;
    max-height: 300px;
    overflow-y: auto;
    transform: translateY(100%);
    transition: none;
}

.rainbow-playlist.show {
    transform: translateY(0);
}

.rainbow-playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #FEE440;
    border-bottom: 3px solid #000000;
    position: sticky;
    top: 0;
    z-index: 10;
}

.rainbow-playlist-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    color: #000000;
    text-transform: uppercase;
}

.rainbow-playlist-count {
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    background: #FFFFFF;
    padding: 4px 12px;
    border-radius: 0;
    border: 2px solid #000000;
}

.rainbow-playlist-content {
    padding: 8px 0;
}

.rainbow-playlist-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    cursor: pointer;
    transition: none;
    border-left: 6px solid transparent;
}

.rainbow-playlist-item:hover {
    background: #FFF9F0;
}

.rainbow-playlist-item.active {
    background: #E0F9FF;
    border-left-color: #00BBF9;
}

.rainbow-playlist-item.playing {
    background: #E0F9FF;
    border-left-color: #00BBF9;
}

.rainbow-playlist-item.playing .rainbow-playlist-title {
    color: #000000;
    font-weight: 900;
}

.rainbow-playlist-icon {
    width: 40px;
    height: 40px;
    background: #FFE5D9;
    border-radius: 0;
    border: 2px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 16px;
    color: #000000;
}

.rainbow-playlist-item.playing .rainbow-playlist-icon {
    background: #00BBF9;
    color: #000000;
}

.rainbow-playlist-info {
    flex: 1;
    min-width: 0;
}

.rainbow-playlist-title {
    font-size: 14px;
    font-weight: 500;
    color: #1E293B;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rainbow-playlist-duration {
    font-size: 12px;
    color: #6B7280;
}

@media (max-width: 768px) {
    .rainbow-playlist-header {
        padding: 12px 16px;
    }

    .rainbow-playlist-header h4 {
        font-size: 14px;
    }

    .rainbow-playlist-count {
        font-size: 12px;
    }

    .rainbow-playlist-item {
        padding: 10px 16px;
    }

    .rainbow-playlist-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .rainbow-playlist-title {
        font-size: 13px;
    }

    .rainbow-playlist-duration {
        font-size: 11px;
    }
}

.rainbow-subtitle {
    background: #FFFFFF;
    border-top: 4px solid #000000;
    padding: 16px 24px;
    transform: translateY(100%);
    transition: none;
    max-height: 200px;
    overflow-y: auto;
}

.rainbow-subtitle.show {
    transform: translateY(0);
}

.rainbow-subtitle-content {
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 700;
    color: #000000;
    background: #FFE5EC;
    padding: 12px 20px;
    border-radius: 0;
    border: 3px solid #000000;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .rainbow-subtitle {
        padding: 12px 16px;
        max-height: 150px;
    }

    .rainbow-subtitle-content {
        font-size: 14px;
        padding: 10px 16px;
        min-height: 40px;
    }
}

.image-modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.image-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: white;
    font-size: 16px;
    z-index: 5;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #007BFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-title {
    font-size: 16px;
    font-weight: 500;
}

.image-counter {
    font-size: 14px;
    opacity: 0.8;
}


@media (max-width: 768px) {
    .image-modal-content {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .image-container {
        padding: 10px;
        min-height: 300px;
    }

    .image-info {
        padding: 15px;
    }

    .image-title {
        font-size: 14px;
    }

    .image-counter {
        font-size: 12px;
    }

    .image-container img {
        width: auto;
        height: auto;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 100px);
    }
}

#purchaseModal.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 245, 240, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#purchaseModal.modal.show {
    opacity: 1;
    visibility: visible;
}

.purchase-modal-content {
    background: #FFFFFF;
    border-radius: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 4px solid #000000;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#purchaseModal.modal.show .purchase-modal-content {
    transform: scale(1);
}

.purchase-modal-content .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #00F5D4;
    border-bottom: 4px solid #000000;
    margin-bottom: 0;
}

.purchase-modal-content .modal-header h3 {
    font-size: 20px;
    font-weight: 900;
    color: #000000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.purchase-modal-content .modal-header iconify-icon {
    font-size: 22px;
}

.purchase-modal-close {
    background: #FF6B6B;
    border: 3px solid #000000;
    font-size: 18px;
    color: #FFFFFF;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 0;
    transition: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.purchase-modal-close:hover {
    background: #FF4D4D;
    transform: translate(2px, 2px);
}

.purchase-modal-content .modal-body {
    padding: 24px;
}

.purchase-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.work-purchase-info {
    padding: 16px;
    background: #FFF9F0;
    border-radius: 0;
    border: 3px solid #000000;
}

.work-details h4 {
    font-size: 18px;
    font-weight: 900;
    color: #000000;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.work-description {
    font-size: 14px;
    color: #6C757D;
    margin: 0;
    line-height: 1.5;
}

.price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #FFE5EC;
    border-radius: 0;
    border: 3px solid #000000;
}

.price-label {
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
}

.price-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 900;
    color: #000000;
}

.price-value iconify-icon {
    font-size: 20px;
    color: #F9DC5C;
}

.balance-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #E0F9FF;
    border-radius: 0;
    border: 3px solid #000000;
}

.balance-info.insufficient-credits {
    background: #FFE5E5;
    border-color: #FF6B6B;
}

.balance-label {
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
}

.balance-value {
    font-size: 18px;
    font-weight: 900;
    color: #000000;
}

.purchase-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}

.insufficient-credits-notice {
    padding: 16px;
    background: #FFE5E5;
    border-radius: 0;
    border: 3px solid #FF6B6B;
    margin-bottom: 8px;
}

.insufficient-credits-notice iconify-icon {
    font-size: 20px;
    color: #FF6B6B;
    margin-bottom: 8px;
}

.insufficient-credits-notice p {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.insufficient-credits-notice p:last-child {
    margin-bottom: 0;
}

.btn {
    padding: 12px 24px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: none;
    border: 3px solid #000000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    text-transform: uppercase;
}

.btn-purchase {
    background: #00F5D4;
    color: #000000;
}

.btn-purchase:hover {
    background: #00F5D4;
    transform: translate(2px, 2px);
}

.btn-purchase:disabled {
    background: #ADB5BD;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-purchase:disabled:hover {
    transform: none;
}

.btn-cancel {
    background: #6C757D;
    color: #FFFFFF;
}

.btn-cancel:hover {
    background: #5A6268;
    transform: translate(2px, 2px);
}

.btn iconify-icon {
    font-size: 16px;
}

@media (max-width: 768px) {
    .purchase-modal-content {
        width: 92%;
        margin: 20px;
        max-height: calc(100vh - 40px);
    }

    .purchase-modal-content .modal-header {
        padding: 16px;
    }

    .purchase-modal-content .modal-header h3 {
        font-size: 18px;
    }

    .purchase-modal-close {
        width: 28px;
        height: 28px;
        border: 2px solid #000000;
    }

    .purchase-modal-content .modal-body {
        padding: 16px;
    }

    .work-details h4 {
        font-size: 16px;
    }

    .price-value,
    .balance-value {
        font-size: 16px;
    }

    .btn {
        width: 100%;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .purchase-modal-content {
        width: 90%;
        border: 3px solid #000000;
    }

    .purchase-modal-content .modal-header {
        padding: 12px;
    }

    .purchase-modal-content .modal-header h3 {
        font-size: 16px;
    }

    .purchase-modal-close {
        width: 26px;
        height: 26px;
        font-size: 14px;
        border: 2px solid #000000;
    }

    .purchase-modal-content .modal-body {
        padding: 12px;
    }

    .work-details h4 {
        font-size: 15px;
    }

    .work-description {
        font-size: 13px;
    }

    .price-info,
    .balance-info {
        padding: 12px;
    }

    .price-label,
    .balance-label {
        font-size: 12px;
    }

    .price-value,
    .balance-value {
        font-size: 15px;
    }

    .btn {
        padding: 10px 14px;
        font-size: 13px;
        min-height: 44px;
    }

    .insufficient-credits-notice {
        padding: 12px;
    }

    .insufficient-credits-notice p {
        font-size: 13px;
    }
}
