/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #051225 0%, #0a1a3a 100%);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(26, 60, 139, 0.3);
    background: rgba(5, 18, 37, 0.9);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-svg {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(26, 60, 139, 0.5));
}

.title h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(45deg, #1a3c8b, #2d4b8f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.tagline {
    font-size: 12px;
    opacity: 0.8;
    letter-spacing: 1px;
}

/* Main content */
.home-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.hero-section {
    text-align: center;
    margin-bottom: 80px;
}

.giant-text {
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 900;
    background: linear-gradient(45deg, #051225, #1a3c8b, #2d4b8f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(26, 60, 139, 0.3);
    transition: transform 0.05s ease;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    letter-spacing: 2px;
}

/* Button grid - HORIZONTAL LAYOUT */
.button-grid {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    flex-wrap: wrap;
}

.home-btn {
    position: relative;
    width: 220px;
    padding: 25px 30px;
    background: rgba(5, 18, 37, 0.8);
    border: 2px solid #051225;
    border-radius: 12px;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 240px;
}

.home-btn:hover {
    background: rgba(26, 60, 139, 0.6);
    border-color: #1a3c8b;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(5, 18, 37, 0.8);
}

.tv-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(26, 60, 139, 0.4), transparent);
    transition: left 0.5s ease;
}

.home-btn:hover .btn-glow {
    left: 100%;
}

/* Binary animation */
.binary-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.binary-code {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    opacity: 0;
    animation: floatUp 1.5s ease-out forwards;
    text-shadow: 0 0 8px currentColor;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) rotate(10deg);
        opacity: 0;
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 18, 37, 0.95);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #051225;
    border: 2px solid #051225;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(5, 18, 37, 0.9);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #1a3c8b;
    background: rgba(5, 18, 37, 0.9);
}

.modal-header h2 {
    font-size: 24px;
    color: #e0e0e0;
}

.close-btn {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.close-btn:hover {
    background: rgba(26, 60, 139, 0.3);
}

.modal-body {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* Portal options in modal */
.portal-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.portal-option.large {
    width: 100%;
    max-width: 500px;
    padding: 25px;
    background: rgba(10, 26, 58, 0.8);
    border: 2px solid #0a1a3a;
    border-radius: 12px;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portal-option.large:hover {
    background: rgba(26, 60, 139, 0.6);
    border-color: #1a3c8b;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(5, 18, 37, 0.6);
}

.portal-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.portal-text {
    font-size: 20px;
    font-weight: 600;
    color: #e0e0e0;
}

.portal-desc {
    font-size: 14px;
    opacity: 0.8;
    color: #a0a0a0;
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #051225;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #1a3c8b;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #2d4b8f;
}

.archives-content::-webkit-scrollbar {
    width: 8px;
}

.archives-content::-webkit-scrollbar-track {
    background: #051225;
    border-radius: 4px;
}

.archives-content::-webkit-scrollbar-thumb {
    background: #1a3c8b;
    border-radius: 4px;
}

.archives-content::-webkit-scrollbar-thumb:hover {
    background: #2d4b8f;
}

.archives-content pre {
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #e0e0e0;
}

.loading, .error {
    text-align: center;
    padding: 40px;
    font-size: 16px;
}

.error {
    color: #ff6b6b;
}

/* Cipher tool */
.creamocrypt-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    background: #051225;
    min-height: 100vh;
}

/* Creamo TV Container */
.creamo-tv-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    background: #051225;
    min-height: 100vh;
}

.tv-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(5, 18, 37, 0.8);
    border-bottom: 1px solid #1a3c8b;
    flex-wrap: wrap;
}

.tv-back-btn {
    background: rgba(26, 60, 139, 0.6);
    border: 1px solid #1a3c8b;
    border-radius: 6px;
    color: #e0e0e0;
    padding: 10px 20px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.tv-back-btn:hover {
    background: rgba(26, 60, 139, 0.8);
    transform: translateY(-2px);
}

.tv-nav-title {
    font-size: 24px;
    background: linear-gradient(45deg, #1a3c8b, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Search Bar Styles */
.tv-search-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 20px;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.search-input {
    background: rgba(5, 18, 37, 0.9) !important;
    border: 1px solid #1a3c8b !important;
    color: #e0e0e0 !important;
    padding: 10px 15px !important;
    border-radius: 6px !important;
    width: 100% !important;
    font-family: 'Courier New', monospace !important;
    transition: all 0.3s ease !important;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2) !important;
}

.tv-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.tv-section {
    background: rgba(10, 26, 58, 0.8);
    border: 1px solid #0a1a3a;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.tv-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #e0e0e0;
    border-bottom: 1px solid #1a3c8b;
    padding-bottom: 10px;
}

.movie-card, .show-card, .trending-card {
    background: rgba(5, 18, 37, 0.9);
    border: 1px solid #051225;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 380px;
}

.movie-card:hover, .show-card:hover, .trending-card:hover {
    transform: translateY(-8px);
    border-color: #d4af37;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
}

.movie-poster, .show-poster, .trending-poster {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #0a1a3a, #1a3c8b);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.movie-poster img, .show-poster img, .trending-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card:hover .movie-poster img,
.show-card:hover .show-poster img,
.trending-card:hover .trending-poster img {
    transform: scale(1.05);
}

.no-poster {
    color: #a0a0a0;
    font-size: 16px;
    text-align: center;
    padding: 20px;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.movie-card:hover .play-icon,
.show-card:hover .play-icon,
.trending-card:hover .play-icon {
    opacity: 1;
}

.movie-overlay, .show-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(5, 18, 37, 0.9), transparent);
    z-index: 1;
}

.movie-info, .show-info, .trending-info {
    padding: 15px;
    position: relative;
    z-index: 1;
}

.movie-info h3, .show-info h3, .trending-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta, .show-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #a0a0a0;
    margin-bottom: 10px;
}

.rating {
    color: #d4af37;
    font-weight: bold;
}

.quality-badge {
    background: linear-gradient(45deg, #1a3c8b, #2d4b8f);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
}

.popular-badge {
    background: linear-gradient(45deg, #d4af37, #f4d03f);
    color: #051225;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
}

.movie-overview, .show-overview {
    font-size: 12px;
    color: #a0a0a0;
    line-height: 1.4;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Trending Cards */
.trending-card {
    min-height: 300px;
}

.trending-card.top-three {
    border: 2px solid #d4af37;
}

.trending-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(5, 18, 37, 0.9);
    color: #d4af37;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
}

.trending-poster {
    height: 200px;
}

.trending-type {
    font-size: 11px;
    color: #a0a0a0;
    margin: 5px 0;
}

.trending-rating {
    color: #d4af37;
    font-size: 12px;
    font-weight: bold;
}

/* Loading States */
.loading-section {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(26, 60, 139, 0.3);
    border-top: 3px solid #1a3c8b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-note {
    font-size: 12px;
    color: #a0a0a0;
    margin-top: 10px;
}

/* Error States */
.error-section {
    text-align: center;
    padding: 40px 20px;
    background: rgba(5, 18, 37, 0.8);
    border: 1px solid #ff6b6b;
    border-radius: 12px;
    margin: 20px 0;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.error-details {
    font-family: 'Courier New', monospace;
    background: rgba(255, 107, 107, 0.1);
    padding: 10px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 12px;
    color: #ff6b6b;
}

.error-instructions {
    text-align: left;
    background: rgba(26, 60, 139, 0.2);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.error-instructions h4 {
    color: #e0e0e0;
    margin-bottom: 10px;
}

.error-instructions ol {
    padding-left: 20px;
    color: #a0a0a0;
}

.error-instructions li {
    margin-bottom: 8px;
}

.fallback-content {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(26, 60, 139, 0.3);
}

/* Player Styles */
.tv-player {
    margin-top: 30px;
    background: rgba(5, 18, 37, 0.9);
    border: 1px solid #1a3c8b;
    border-radius: 12px;
    overflow: hidden;
    padding: 20px;
}

.player-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, #051225, #0a1a3a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #a0a0a0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.player-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.player-info p {
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 15px;
}

.player-controls {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.player-btn {
    padding: 8px 16px;
    background: rgba(26, 60, 139, 0.6);
    border: 1px solid #1a3c8b;
    border-radius: 6px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.player-btn:hover {
    background: rgba(26, 60, 139, 0.8);
    transform: translateY(-2px);
}

.player-btn.primary {
    background: linear-gradient(45deg, #051225, #1a3c8b);
    border-color: #1a3c8b;
}

.player-btn.outline {
    background: transparent;
    border: 1px solid #1a3c8b;
}

.player-btn.outline:hover {
    background: rgba(26, 60, 139, 0.2);
}

.cipher-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #1a3c8b;
}

.back-btn {
    background: rgba(5, 18, 37, 0.8);
    border: 1px solid #051225;
    border-radius: 6px;
    color: #e0e0e0;
    padding: 10px 15px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(26, 60, 139, 0.6);
    border-color: #1a3c8b;
}

.cipher-header h1 {
    font-size: 28px;
    background: linear-gradient(45deg, #1a3c8b, #2d4b8f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cipher-main {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.card {
    background: rgba(5, 18, 37, 0.8);
    border: 1px solid #051225;
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.tool-card {
    grid-column: 1;
}

.info-card {
    grid-column: 2;
    position: sticky;
    top: 20px;
}

.card h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #e0e0e0;
    border-bottom: 1px solid #1a3c8b;
    padding-bottom: 10px;
}

.native-select {
    display: none;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e0e0e0;
}

.custom-select {
    position: relative;
    width: 100%;
}

.select-control {
    background: rgba(5, 18, 37, 0.9);
    border: 1px solid #051225;
    border-radius: 6px;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s;
}

.select-control:hover {
    border-color: #1a3c8b;
}

.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #051225;
    border: 1px solid #051225;
    border-radius: 6px;
    margin-top: 5px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.select-dropdown.hidden {
    display: none;
}

.select-filter {
    width: 100%;
    padding: 10px 15px;
    background: rgba(5, 18, 37, 0.9);
    border: none;
    border-bottom: 1px solid #1a3c8b;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
}

.select-filter:focus {
    outline: none;
    background: rgba(26, 60, 139, 0.3);
}

.options {
    list-style: none;
    max-height: 250px;
    overflow-y: auto;
}

.option {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(26, 60, 139, 0.3);
    transition: background 0.2s;
}

.option:hover {
    background: rgba(26, 60, 139, 0.3);
}

.option strong {
    display: block;
    margin-bottom: 4px;
    color: #e0e0e0;
}

.option small {
    color: #a0a0a0;
    font-size: 12px;
}

textarea, input[type="text"], input[type="password"], input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(5, 18, 37, 0.9);
    border: 1px solid #051225;
    border-radius: 6px;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    transition: border-color 0.3s;
}

textarea:focus, input:focus {
    outline: none;
    border-color: #1a3c8b;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.hidden {
    display: none !important;
}

.button-group {
    display: flex;
    gap: 12px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    background: rgba(5, 18, 37, 0.8);
    border: 1px solid #051225;
    border-radius: 6px;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn:hover {
    background: rgba(26, 60, 139, 0.6);
    border-color: #1a3c8b;
    transform: translateY(-1px);
}

.btn.primary {
    background: linear-gradient(45deg, #051225, #1a3c8b);
    border-color: #1a3c8b;
}

.btn.outline {
    background: transparent;
}

.btn.tiny {
    padding: 6px 12px;
    font-size: 12px;
}

.output-wrap {
    margin-top: 25px;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.output {
    background: rgba(5, 18, 37, 0.9);
    border: 1px solid #051225;
    border-radius: 6px;
    padding: 15px;
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
    position: relative;
}

.output.error {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.caret {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.info-content {
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
}

.hint {
    margin-top: 20px;
    padding: 12px;
    background: rgba(26, 60, 139, 0.2);
    border: 1px solid #1a3c8b;
    border-radius: 6px;
    font-size: 13px;
    color: #a0a0a0;
}

/* No Results Styling */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: rgba(5, 18, 37, 0.8);
    border: 1px solid #1a3c8b;
    border-radius: 12px;
    margin: 20px 0;
}

.no-results h3 {
    color: #e0e0e0;
    margin-bottom: 10px;
}

/* Load More Button Improvements */
.load-more-container {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(26, 60, 139, 0.3);
}

.load-more-btn {
    padding: 12px 30px;
    background: linear-gradient(45deg, #051225, #1a3c8b);
    border: 1px solid #1a3c8b;
    border-radius: 6px;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin: 5px;
}

.load-more-btn:hover {
    background: linear-gradient(45deg, #0a1a3a, #2d4b8f);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 60, 139, 0.4);
}

.load-more-btn.outline {
    background: transparent;
    border: 1px solid #1a3c8b;
}

.load-more-btn.outline:hover {
    background: rgba(26, 60, 139, 0.2);
}

/* Category Filter Improvements */
.category-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    padding: 15px;
    background: rgba(5, 18, 37, 0.8);
    border-radius: 8px;
}

.filter-btn {
    padding: 8px 16px;
    background: rgba(5, 18, 37, 0.8);
    border: 1px solid #051225;
    border-radius: 6px;
    color: #a0a0a0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.filter-btn.active {
    background: rgba(26, 60, 139, 0.6);
    border-color: #1a3c8b;
    color: #e0e0e0;
}

.filter-btn:hover {
    background: rgba(26, 60, 139, 0.4);
    transform: translateY(-2px);
}

/* Vidking Player */
.vidking-player-container {
    position: relative;
    width: 100%;
    background: #051225;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
}

.vidking-player {
    border: none;
    border-radius: 8px;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.player-stats {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #d4af37;
}

.stat-label {
    font-size: 12px;
    color: #a0a0a0;
}

.player-features {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(26, 60, 139, 0.2);
    padding: 10px 15px;
    border-radius: 6px;
}

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

.feature-text {
    font-size: 12px;
    color: #e0e0e0;
}

.season-selector {
    margin: 20px 0;
    padding: 15px;
    background: rgba(26, 60, 139, 0.2);
    border-radius: 8px;
}

.season-selector label {
    color: #e0e0e0;
    margin-right: 10px;
}

.season-selector select {
    background: rgba(5, 18, 37, 0.9);
    border: 1px solid #1a3c8b;
    color: #e0e0e0;
    padding: 8px 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
}

.filter-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    background: rgba(26, 60, 139, 0.2);
    border-radius: 8px;
    color: #a0a0a0;
    font-size: 14px;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(26, 60, 139, 0.3);
    font-size: 14px;
    opacity: 0.8;
    background: rgba(5, 18, 37, 0.9);
}

/* Responsive */
@media (max-width: 1024px) {
    .tv-content-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 15px 20px;
    }
    
    .button-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .home-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .cipher-main {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        grid-column: 1;
        position: static;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-section {
        margin-bottom: 40px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .tv-content-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .player-placeholder {
        height: 250px;
    }
    
    .tv-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tv-search-container {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .movie-poster, .show-poster {
        height: 240px;
    }
    
    .player-stats, .player-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .vidking-player {
        height: 400px;
    }
    
    .category-filter {
        overflow-x: auto;
        padding: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
    
    .load-more-btn {
        width: 100%;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .tv-content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-filter {
        justify-content: center;
    }
    
    .vidking-player {
        height: 300px;
    }
    
    .tv-nav-title {
        font-size: 20px;
    }
    
    .player-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}
