


header {
    text-align: center;
    margin-bottom: 10px;
    padding: 10px;
}

h1 {
    color: #000;
    margin-bottom: 10px;
    font-size: 28px; /* 2.5rem */
    display: flex;
    align-items: center;
    font-weight: bold;
    justify-content: center;
    gap: 15px;
}

.logo {
    color: #ff0050;
    font-size: 44.8px; /* 2.8rem */
}

.subtitle {
    color: #666;
    font-size: 17.6px; /* 1.1rem */
    max-width: 600px;
    margin: 0 auto;
}

.card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-title {
    color: #000;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22.4px; /* 1.4rem */
}

.input-group {
    display: flex;
    margin-bottom: 20px;
}

input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    font-size: 16px; /* 1rem */
    outline: none;
    background: #f9f9f9;
    color: #333;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #ff0050;
    background: #fff;
}

input::placeholder {
    color: #999;
}

.button-tiktok {
    background: linear-gradient(to right, #ff0050, #ff4081);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.button-tiktok :hover {
    background: linear-gradient(to right, #e00046, #ff0050);
    box-shadow: 0 4px 12px rgba(255, 0, 80, 0.3);
}

.button-tiktok :disabled {
    background: #bbb;
    cursor: not-allowed;
    box-shadow: none;
}

.profile-container {
    display: none;
    margin-top: 30px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 25px;
    border: 3px solid #ff0050;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px; /* 2.5rem */
    color: #ff0050;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h2 {
    font-size: 28.8px; /* 1.8rem */
    margin-bottom: 8px;
    color: #000;
}

.profile-info p {
    color: #666;
    margin-bottom: 15px;
    max-width: 500px;
}

.profile-stats {
    display: flex;
    gap: 25px;
    margin-top: 15px;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 22.4px; /* 1.4rem */
    font-weight: bold;
    color: #ff0050;
}

.stat-label {
    font-size: 14.4px; /* 0.9rem */
    color: #777;
}

.videos-section h3 {
    margin-bottom: 20px;
    color: #000;
    font-size: 24px; /* 1.5rem */
    display: flex;
    align-items: center;
    gap: 10px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.video-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid #eee;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    height: 200px;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 80, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19.2px; /* 1.2rem */
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .video-play {
    opacity: 1;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-stats {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 14.4px; /* 0.9rem */
}

.video-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.video-action-btn {
    flex: 1;
    padding: 8px 12px;
    background: #f5f5f5;
    border: none;
    border-radius: 6px;
    font-size: 13.6px; /* 0.85rem */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.video-action-btn.watch {
    background: rgba(255, 0, 80, 0.1);
    color: #ff0050;
}

.video-action-btn.watch:hover {
    background: rgba(255, 0, 80, 0.2);
}

.video-action-btn.download {
    background: rgba(76, 201, 240, 0.1);
    color: #0288d1;
}

.video-action-btn.download:hover {
    background: rgba(76, 201, 240, 0.2);
}

.message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

.error {
    background: rgba(255, 0, 80, 0.08);
    color: #d32f2f;
    border: 1px solid rgba(255, 0, 80, 0.2);
}

.warning {
    background: rgba(255, 193, 7, 0.08);
    color: #ff8f00;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.success {
    background: rgba(76, 201, 240, 0.08);
    color: #0288d1;
    border: 1px solid rgba(76, 201, 240, 0.2);
}

.loading {
    text-align: center;
    padding: 30px;
    display: none;
}

.spinner {
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 5px solid #ff0050;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.api-info {
    background: rgba(76, 201, 240, 0.08);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 14.4px; /* 0.9rem */
    color: #0288d1;
}

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px; /* 1.5rem */
    cursor: pointer;
    color: #777;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.video-player {
    width: 100%;
    height: 400px;
    background: #000;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-info-panel {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.video-description {
    color: #333;
    margin-bottom: 10px;
}

.video-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 14.4px; /* 0.9rem */
}

.modal-footer {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px; /* 1rem */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-btn.primary {
    background: #ff0050;
    color: white;
}

.modal-btn.primary:hover {
    background: #e00046;
}

.modal-btn.secondary {
    background: #f5f5f5;
    color: #333;
}

.modal-btn.secondary:hover {
    background: #e5e5e5;
}


@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .video-player {
        height: 300px;
    }
}