:root {
    --primary-color: #ff4081;
    --secondary-color: #7c4dff;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --lighter-bg: #2d2d2d;
    --text-color: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #333333;
    --error-color: #ff5252;
    --success-color: #4caf50;
    --mp4-color: #e91e63;
    --rar-color: #ff9800;
    --photos-color: #4caf50;
    --links-color: #29b6f6;
    --tiktok-color: #000000;
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 30px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hidden {
    display: none !important;
}

/* Login styles */
#login-container {
    max-width: 400px;
    margin: 80px auto;
}

#login-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--lighter-bg);
    color: var(--text-color);
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color) 30%, #ff9100 90%);
    color: white;
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.btn-primary:hover {
    box-shadow: 0 3px 5px 2px rgba(255, 105, 135, 0.3);
}

.error-message {
    color: var(--error-color);
    margin-top: 10px;
    text-align: center;
}

/* Main container styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    flex-wrap: wrap;
}

header h1 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
}

header a {
    text-decoration: none;
    border: none;
    outline: none;
    box-shadow: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 0;
}

nav {
    display: flex;
    gap: 15px;
}

.nav-btn {
    background-color: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: var(--lighter-bg);
    color: var(--primary-color);
}

.nav-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

.btn-logout {
    background-color: var(--error-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

/* Content sections */
.content-section {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    margin-bottom: 30px;
}

/* Anulando estilos para los contenedores sin recuadro */
#posts-container.content-section,
#models-container.content-section,
#producers-container.content-section {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    width: 100%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    width: 100%;
}

.search-box {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 500px;
}

.search-box input {
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--lighter-bg);
    color: var(--text-color);
    font-size: 15px;
    flex: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.search-box button {
    padding: 14px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.search-box button:hover {
    background-color: #e91e63;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

/* Posts grid */
#posts-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

#posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 25px;
    margin-bottom: 40px;
    width: 100%;
}

.post-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: var(--lighter-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 420px;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 64, 129, 0.3);
}

.post-img {
    height: 240px;
    background-color: #222;
    position: relative;
    overflow: hidden;
    line-height: 0;
    width: 100%;
}

.post-img img, .post-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-details {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    background: linear-gradient(0deg, rgba(35,35,35,1) 0%, rgba(45,45,45,1) 100%);
}

.post-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--primary-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    line-height: 1.3;
    max-height: 2.6em;
}

.post-meta {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-meta div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

/* Contador de archivos mejorado */
.post-files {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 8px;
    margin-top: auto;
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Especificar que los contadores 4 y 5 abarquen espacio en la segunda fila */
.post-files > div:nth-child(4) {
    grid-column: 1 / span 2;
}
.post-files > div:nth-child(5) {
    grid-column: 3 / span 1;
}

.file-counter {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 30px;
    font-size: 12px;
    background-color: var(--card-bg);
    color: var(--text-secondary);
    justify-content: center;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.file-counter.has-files {
    color: white;
    font-weight: 600;
    transform: scale(1.02);
}

/* Colores específicos para cada tipo de contador */
.file-counter:nth-child(1).has-files {
    background-color: var(--mp4-color);
}

.file-counter:nth-child(2).has-files {
    background-color: var(--rar-color);
}

.file-counter:nth-child(3).has-files {
    background-color: var(--photos-color);
}

.file-counter:nth-child(4).has-files {
    background-color: var(--links-color);
}

.file-counter:nth-child(5).has-files {
    background-color: var(--tiktok-color);
}

.file-counter i {
    margin-right: 4px;
    font-size: 11px;
}

.file-counter span {
    margin-left: 3px;
    font-weight: bold;
}

/* Pagination */
#pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 30px auto;
    width: 100%;
}

.pagination-btn {
    padding: 12px 20px;
    background-color: var(--lighter-bg);
    border: none;
    border-radius: 10px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 16px;
    font-weight: 500;
    min-width: 45px;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.pagination-btn:hover {
    background-color: rgba(255, 64, 129, 0.2);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 64, 129, 0.4);
}

/* Post detail styles */
#post-detail-container {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

#post-detail-content {
    width: 100%;
}

#back-btn {
    margin-bottom: 20px;
    background-color: rgba(255, 64, 129, 0.2);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

#back-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    margin-bottom: 30px;
    width: 100%;
    gap: 25px;
}

.post-trailer {
    width: 65%;
    background-color: #333;
    position: relative;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.post-trailer img, .post-trailer video {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}

/* Contenedor del embed: forzar 16:9 (horizontal) */
.post-trailer:has(.embed-player) {
    position: relative;
    width: 65%;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
}

.post-trailer .embed-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.post-trailer:has(.embed-player) .embed-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.post-info {
    width: 35%;
    padding: 0 0 0 10px;
}

.post-info h2 {
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.3;
}

.post-info-meta {
    margin-bottom: 15px;
}

.post-info-meta p {
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.post-info-meta span {
    color: var(--text-color);
}

.post-tabs {
    margin-top: 30px;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    gap: 5px;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.tab-btn:hover {
    color: var(--primary-color);
    background-color: rgba(255, 64, 129, 0.1);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    background-color: rgba(255, 64, 129, 0.1);
}

.tab-content {
    display: none;
    padding: 5px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.file-list {
    list-style: none;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    background-color: var(--lighter-bg);
    transition: all 0.2s ease;
}

.file-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

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

.file-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: white;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.file-name {
    font-weight: 500;
    font-size: 16px;
}

.file-quality {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 3px;
}

.download-btn {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background-color: #e4236d;
    transform: translateY(-2px);
}

.download-btn i {
    margin-right: 6px;
}

/* Models and Producers */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 25px;
    margin-top: 20px;
    width: 100%;
}

.category-item {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--lighter-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: auto;
    min-height: 200px;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.model-cover-image {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center top;
    background-color: #333;
    transition: all 0.3s ease;
}

.category-info {
    padding: 15px;
    background-color: var(--lighter-bg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-name {
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-count {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Gallery de fotos de modelos */
.model-photos-gallery {
    margin-top: 30px;
    margin-bottom: 30px;
}

.model-photos-gallery h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.photo-card {
    background-color: var(--lighter-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.photo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.photo-info {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.photo-date {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(45deg, var(--primary-color) 30%, var(--secondary-color) 90%);
    border-radius: 8px;
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-title {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin: 10px 0;
}

.top-posts {
    background-color: var(--lighter-bg);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.top-posts h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.top-post-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.top-post-item:hover {
    background-color: rgba(255, 64, 129, 0.1);
}

.top-post-title {
    font-weight: 500;
}

/* Videos y contenido multimedia */
.video-trailer {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
    display: block;
    margin: 0;
    padding: 0;
}

.post-header .video-trailer {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
}

.post-img .video-trailer {
    border-radius: 8px 8px 0 0;
    display: block;
}

/* TikTok Videos */
.tiktok-videos-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tiktok-video-item {
    background-color: var(--lighter-bg);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tiktok-video-placeholder {
    width: 100%;
    height: 200px;
    background-color: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.tiktok-video-placeholder i {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.tiktok-video-placeholder p {
    color: var(--text-secondary);
    max-width: 250px;
}

.tiktok-video-title {
    font-size: 16px;
    padding: 15px;
    margin: 0;
    color: var(--primary-color);
}

.tiktok-video-actions {
    padding: 0 15px 15px;
    display: flex;
    justify-content: flex-end;
}

/* Cargador */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    flex-direction: column;
}

.spinner {
    border: 4px solid rgba(255, 64, 129, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.no-results {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Responsive */
@media (min-width: 1600px) {
    #posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .post-img {
        height: 260px;
    }
    
    .post-title {
        font-size: 17px;
    }
    
    .post-meta {
        font-size: 14px;
    }
    
    .file-counter {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .file-counter i {
        font-size: 11px;
    }
}

@media (max-width: 1200px) {
    #posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .post-img {
        height: 220px;
    }
}

@media (max-width: 992px) {
    header {
        padding: 15px 0;
    }
    
    .header-right {
        gap: 15px;
    }
    
    nav {
        gap: 10px;
    }
    
    .nav-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    /* Modo celular: estilos para pantallas pequeñas */
    header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .header-right {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .search-box {
        width: 100%;
        max-width: 100%;
    }
    
    /* En modo celular solo la barra de búsqueda; buscar con Enter */
    .search-box button {
        display: none;
    }
    
    /* Sección Modelos: 2 columnas en celular */
    #models-list .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* Sección Productoras: 2 columnas en celular */
    #producers-list .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    nav {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-btn {
        flex: 1;
        text-align: center;
        padding: 10px 8px;
        font-size: 13px;
        border-radius: 6px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 10px;
    }
    
    #posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-img {
        height: 220px;
    }
    
    .post-card {
        min-height: auto;
    }
    
    #post-detail-container {
        padding: 12px;
        border-radius: 8px;
    }
    
    .post-info h2 {
        font-size: 22px;
    }
    
    .post-info-meta p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #main-logo {
        font-size: 24px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-box input, 
    .search-box button {
        width: 100%;
    }
    
    nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .nav-btn {
        flex: 0 0 auto;
        min-width: calc(33% - 6px);
        padding: 8px 5px;
        font-size: 12px;
    }
}

/* Estilos para el logo */
#logo-link, #logo-link:focus, #logo-link:active, #logo-link:hover {
    text-decoration: none;
    display: block;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
    /* Asegurarse de que no aparezca ningún borde o contorno al hacer clic o focus */
    -webkit-tap-highlight-color: transparent !important;
    border-radius: 0;
    background: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#logo-link::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: none;
    pointer-events: none;
}

#main-logo {
    font-family: 'LEMON MILK', 'lemon milk', sans-serif;
    font-weight: 500; /* Menos gruesa */
    color: #ffffff;
    font-size: 28px;
    margin: 0;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    text-shadow: none;
}

@media (max-width: 768px) {
    #main-logo {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    #main-logo {
        font-size: 24px;
    }
}

/* Mensaje de advertencia de App */
.app-warning {
    background-color: rgba(255, 152, 0, 0.1);
    border-left: 4px solid var(--rar-color);
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-warning-icon {
    font-size: 24px;
    color: var(--rar-color);
    flex-shrink: 0;
}

.app-warning-text {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
}

.app-warning-text strong {
    color: var(--rar-color);
    font-weight: 600;
}

.app-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.app-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .app-warning {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
        text-align: center;
    }
}

/* Mensaje recordatorio en listado de archivos */
.app-reminder {
    background-color: rgba(255, 152, 0, 0.08);
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-reminder-icon {
    color: var(--rar-color);
    font-size: 18px;
}

.app-reminder-text {
    font-size: 13px;
    color: var(--text-color);
}

.app-reminder strong {
    color: var(--rar-color);
}

/* Estilos para el mensaje de advertencia pequeño en cada archivo */
.file-app-notice {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--rar-color);
    margin-top: 5px;
}

.file-app-notice i {
    font-size: 14px;
}

/* Estilos para los enlaces de descarga */
.external-links-container {
    margin: 15px 0;
}

.external-links-container h3 {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--primary-color);
}

.external-links-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.external-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.external-link-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.no-links-message {
    color: var(--text-secondary);
    font-style: italic;
    padding: 10px 0;
}

/* Mejorar responsive de enlaces de descarga */
@media (max-width: 768px) {
    .external-links-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .external-link-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }
    
    .post-header {
        flex-direction: column;
    }
    
    .post-trailer, .post-info {
        width: 100%;
    }
    
    /* Embed a ancho completo en modo celular */
    .post-trailer:has(.embed-player) {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .external-links-container h3 {
        text-align: center;
    }
    
    .external-link-btn {
        font-size: 14px;
    }
}

/* Estilos para estados de carga y error */
.loading, .error, .no-results {
    width: 100%;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin: 20px 0;
}

.loading {
    background-color: var(--lighter-bg);
    color: var(--text-color);
}

.error {
    background-color: rgba(255, 82, 82, 0.1);
    color: var(--error-color);
}

.no-results {
    background-color: var(--lighter-bg);
    color: var(--text-secondary);
}

/* Estilos para estados de carga y error */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    width: 100%;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--lighter-bg);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

.loader-message {
    margin-top: 15px;
    color: var(--text-secondary);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background-color: rgba(255, 82, 82, 0.1);
    border-radius: 8px;
    margin: 20px 0;
}

.error-icon {
    font-size: 40px;
    color: var(--error-color);
    margin-bottom: 15px;
}

.error-message {
    color: var(--error-color);
    text-align: center;
    font-size: 16px;
}

.no-results-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: var(--lighter-bg);
    border-radius: 8px;
    margin: 20px 0;
}

.no-results-icon {
    font-size: 40px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.no-results-message {
    color: var(--text-secondary);
    text-align: center;
    font-size: 16px;
}