/* Base Player Container */
.tbc-bc-player {
    max-width: 1200px;
    margin: 0 auto;
}

/* Back to Books Button */
.tbc-bc-back-to-books {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border: none;
    border-radius: 20px;
    color: #1a73e8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tbc-bc-back-to-books:hover {
    background: #e8f0fe;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.1);
}

.tbc-bc-back-icon {
    width: 20px;
    height: 20px;
}

/* Book Display */
.tbc-bc-current-book {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tbc-bc-book-cover {
    margin: 0 auto 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tbc-bc-book-cover:hover {
    transform: translateY(-4px);
}

.tbc-bc-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tbc-bc-book-info {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.tbc-bc-book-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
    padding: 0;
    text-align: center;
}

.tbc-bc-book-author {
    font-size: 18px;
    color: #666;
    margin: 0;
    text-align: center;
}

/* Player Container */
.tbc-bc-player-container {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.tbc-bc-custom-player-ui {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Current Chapter Display */
.tbc-bc-current-chapter {
    display: flex;
    align-items: center;
    color: #1a73e8;
    font-size: 18px;
    font-weight: 500;
    padding: 8px 16px;
    background: #e8f0fe;
    border-radius: 24px;
    width: 100%;
}

.tbc-bc-current-chapter .tbc-bc-chapter-icon {
    flex: 0 0 auto;
    margin-right: 12px;
    color: #1a73e8;
}

/* Marquee Animation */
.tbc-bc-marquee {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.tbc-bc-scroll-text {
    display: inline-block;
    white-space: nowrap;
    animation: tbc-bc-scroll 20s linear infinite;
}

@keyframes tbc-bc-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.tbc-bc-marquee:hover .tbc-bc-scroll-text {
    animation-play-state: paused;
}

/* Messages Container */
.tbc-bc-messages-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.tbc-bc-message {
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    margin-bottom: 10px;
    animation: tbc-bc-slideIn 0.3s ease-out;
}

.tbc-bc-success { background: #34A853; }
.tbc-bc-error { background: #EA4335; }
//.tbc-bc-info { background: #4285F4; }

.tbc-bc-fade-out {
    animation: tbc-bc-fadeOut 0.3s ease-out forwards;
}

@keyframes tbc-bc-slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes tbc-bc-fadeOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .tbc-bc-player-container {
        padding: 16px;
    }

    .tbc-bc-book-title {
        font-size: 24px;
    }

    .tbc-bc-book-author {
        font-size: 16px;
    }

    .tbc-bc-current-chapter {
        font-size: 16px;
        padding: 6px 12px;
    }

    .tbc-bc-messages-container {
        left: 20px;
        right: 20px;
    }
}