@namespace url(http://www.w3.org/1999/xhtml);

/* ======== Ads ======== */
@-moz-document domain("nicovideo.jp"){
  #web_pc_top,
  #web_pc_prime,
  #web_pc_premium,
  #web_pc_360,
  #web_pc_footer,
  #web_pc_prtext,
  #web_pc_watch_footer,
  .sideTxtAd,
  .sidewallAd,
  #headerAd,
  .ads,
  .ads_468,
  .adsense,
  #ad_468_60,#ad_728_90,
  #ad_jxmn_banner,
  .tag_sync,
  #FOOTER_GOOGLE_AD,
  #news_pc_skyscraper,
  #channel_pc_top,
  #sideAd,
  #footerAd,
  #community_pc_top,
  .googlead,
  #WATCH_MIDDLE_BANNER,
  #AdTopRight,
  #banner-top,
  #banner-side,
  .kokoku,
  iframe[src^="http://ad.yieldmanager.com/"],
  a[href^="http://ad.yieldmanager.com/"],
  #logo_sp
  {
    display: none !important;
  }
}
@-moz-document domain("dic.nicovideo.jp") {
}

/* ======== 全体 - グローバルナビ&フッター ======== */
@-moz-document
domain("www.nicovideo.jp"),
domain("nine.nicovideo.jp"),
domain("live.nicovideo.jp"),
domain("seiga.nicovideo.jp"){
  /* -------- 背景色を統一 (全体広告での背景色変更を元に戻す) -------- */
  body{background-color: #ffffff !important;}

  /* ======== グローバルナビ ======== */
  #navWrap,
  .bg_headmenu,
  #navi,
  #bar{
    background-image: none !important;
    background-color: #222226 !important;
    background-image: -moz-linear-gradient(top,#5c5c62,#666 38%,#3a3a3a 42%,#222226) !important;
    background-image: -o-linear-gradient(top,#5c5c62,#666 38%,#3a3a3a 42%,#222226) !important;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#5c5c62),color-stop(0.38,#666),color-stop(0.42,#444),to(#222226)) !important;
    box-shadow: 0 0 8px rgba(0,0,0,.5);
    height: 25px !important;
  }
  #globalNav,
  #globalNav a,
  #navigations li,
  #bar tr,
  #navigations li>span,
  .headmenu td,
  .headmenu td span
  {
    color: #fff !important;
  }
  #navWrap li,
  #navWrap a,
  .bg_headmenu a,
  #naviInner a,
  #bar a
  {
    background-color:transparent !important;
    color:#fff !important;
    text-decoration: none !important;
  }
  #navWrap a:hover,
  .bg_headmenu a:hover,
  #naviInner a:hover,
  #bar a:hover{
    text-decoration: underline !important;
  }
  /* -------- ニコニコTOPへのリンクを太字に -------- */
  #navWrap a[href="http://rd.nicovideo.jp/cc/header/uni"],
  .headmenu a[href="http://rd.nicovideo.jp/cc/header/uni"],
  #globalNav a[href="http://rd.nicovideo.jp/cc/header/nicovideo"],
  #bar a[href="http://rd.nicovideo.jp/cc/header/nicovideo"] {
    font-weight:bold;
  }
  /* -------- その他▼のプルダウンメニュー -------- */
  /* トップ */ .subNav,
  /* 動画 */.headmenu_g,
  /* 生放送 */ #popup_other,
  /*静画*/ #bar_other {
    background-image: none !important;
    background-color: #2a2a2a !important;
    background-image: -moz-linear-gradient(top,#2a2a2a,#333) !important;
    background-image: -o-linear-gradient(top,#2a2a2a,#333) !important;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#2a2a2a),to(#333)) !important;
    opacity: .9;
    border: 2px solid #ccc !important;
    padding: 3px !important;
  }
  .hasSubNav>span {text-decoration: underline;}

  /* ======== フッター ======== */
  #footerWrap,
  #PAGEFOOTER {
    background-image: none !important;
    background-color: #181818 !important;
    box-shadow: 0 -2px 2px #444444;
  }
  #footerWrap {
    padding-bottom: 20px !important;
  }
  #PAGEFOOTER>p:nth-child(2),
  #PAGEFOOTER>p:nth-child(4),
  img[src="http://res.nimg.jp/img/base/foot/line.png"] {
    display: none;
  }
  #footer a,#PAGEFOOTER a{
    color: #ddd !important;
  }
}

/* ======== ニコニコ生放送 調整 ======== */
@-moz-document domain("live.nicovideo.jp"){
  #header {padding-top: 31px !important;}
  #naviInner {
    line-height: 25px !Important;
    height: 25px !important;
  }
  #header {
    padding-top: 5px !important;
  }
  body.follow_type {
    padding-top: 25px !important;
  }
  /* -------- グローバルナビの色付け - 赤 -------- */
  #navi {
    background-image: -moz-linear-gradient(top,#5c5c62,#666 38%,#443a3a 42%,#662222) !important;
    background-image: -o-linear-gradient(top,#5c5c62,#666 38%,#443a3a 42%,#662222) !important;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#5c5c62),color-stop(0.38,#666),color-stop(0.42,#443a3a),to(#662222)) !important;
  }
}

/* ======== ニコニコ静画 調整 ======== */
@-moz-document domain("seiga.nicovideo.jp"){
  body {
    font-family: 'メイリオ',Meiryo,'ＭＳ Ｐゴシック','ヒラギノ角ゴ Pro W3','Hiragino Kaku Gothic Pro','Osaka',sans-serif !important;
  }
  #bar_cnt>div {
    line-height: 25px !important;
  }
  /* -------- グローバルナビの色付け - 緑 -------- */
  #bar {
    background-image: -moz-linear-gradient(top,#5c5c62,#666 38%,#3a443a 42%,#226622) !important;
    background-image: -o-linear-gradient(top,#5c5c62,#666 38%,#3a443a 42%,#226622) !important;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#5c5c62),color-stop(0.38,#666),color-stop(0.42,#3a443a),to(#226622)) !important;
  }
}


/* ======== 総合トップ - カスタマイズ ======== */
@-moz-document
url("http://www.nicovideo.jp/"),
url("http://www.nicovideo.jp/#"){
  body>div:nth-child(2) {
    background-color: transparent !important;
  }
  /* -------- ヘッダー統合 -------- */
/*  #header {
    padding: 15px 10px !important;
    height: 70px !importatn;
    margin: 50px auto -80px !important;
    border: 1px solid #ccc !important;
    background-image: -moz-linear-gradient(top,#f7f7f7,#fff 20%,#fff 78%,#eee);
    background-image: -o-linear-gradient(top,#f7f7f7,#fff 20%,#fff 78%,#eee) !important;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#f7f7f7),color-stop(0.2, #fff),color-stop(0.78, #fff),to(#eee));
  }
  #swfSearchFormWrap,
  #swfSearchFormInner {
    position: static !important;
  }
  #searchFormWrap {
    margin-left: 200px !important;
    width: 700px !important;
    padding: 0 !important;
  }
  #swfSearchFormInner {
    margin-left: -200px !important;
  }
  #swfSearchFormOuter {
    display: none !important;
  }
  #searchFormWrap {
    background: none !important;
    border: 0 !important;
  }
  #searchFormInner {
    background-image: none !important;
  }
  #logo_sp {
    display: none !important;
  }*/
  /* -------- コンテンツ -------- */
  #contents {
    margin-bottom: 0 !important;
  }
  #mainContents a,
  #sideContents a,
  #sideNav a {
    color: #333333 !important;
    font-size: 87% !important;
  }
  #textInfo a {
    color: #333333 !important;
  }
  /* -------- フッター調整 -------- */
  #contentsWrap {
    padding-bottom: 40px !important;
  }
}


/* ======== 動画・総合 ======== */
@-moz-document domain("www.nicovideo.jp"){
  /*上側のスペース調整 - 動画最大化時に邪魔になるので属性指定で限定*/
  body.mode_2 {padding-top: 27px !important;}
  body.mode_2[style="margin: 0pt; padding: 0pt; width: 100%; height: 100%;"] {padding: 0 !important;}

  div[style="margin: 0pt auto; padding: 0pt 10px; position: relative; width: 976px; background-color: rgb(255, 255, 255);"],
  .toPageTop {
    background-color: transparent !important;
  }
  /* -------- 動画再生 - 右上のユーザープロフィール -------- */
  .owner_prof {
    background-image: -moz-linear-gradient(top,#e9efef,#f7f9f9) !important;
    background-image: -o-linear-gradient(top,#e9efef,#f7f9f9) !important;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#e9efef),to(#f7f9f9)) !important;
    border-radius: 2px;
  }
}

/* ======== マイページ ======== */
@-moz-document
 url-prefix("http://www.nicovideo.jp/my"),
 url-prefix("http://www.nicovideo.jp/user"){
  /* -------- 左メニュー -------- */
  #myNavWrap a {
    color: #333333 !important;
    font-size: 87% !important;
  }
  #myNavWrap dd, /*左メニュー 選択中の項目*/
  #myNavWatchlist dd, /*左メニュー ウォッチリスト*/
  #mainRanking a,
  #sideRanking a,
  span.userName a,
  #pastReport a,
  div.mylistVideo dd a,
  #headingMypage a
  {
    color: #333333 !important;
    font-size: 100% !important;
  }
  /* -------- 左メニューサブメニュー -------- */
  #accountBoxWrap {
    background-color: transparent !important;
    padding: 0 4px 4px !important;
    width: auto !important;
    margin-right: 10px !important;
  }
  #accountBox {
    border-radius: 4px;
    box-shadow: 1px 2px 5px rgba(191,191,207,.5);
  }
  #myNavMylist dd {
    font-size: 96% !important;
  }
  #myNavWrap dd.active,
  #myNavOthers li.active {
    background-color: #cccccc !important;
  }
  /* -------- マイページ コンテンツヘッダー -------- */
  /* 右上「twitterで連携」 */
  #myContHead a.exLink {
    font-size: 87% !important;
    font-weight: normal !important;
    color: #333333 !important;
  }
  /* -------- マイページ コンテンツ -------- */
  #myCont {
    border: 2px solid #aaaaaa !important;
    border-radius: 2px;
  }
  #myContHead {
    background-image: -moz-linear-gradient(top,#eee,#ddd);
    background-image: -o-linear-gradient(top,#eee,#ddd);
    background-image: -webkit-gradient(linear,left top,left bottom,from(#eee),to(#ddd));
    border-bottom: 1px solid #cccccc !important;
  }
  .pager span.active,
  .pager a {
    border: 1px solid #666666 !important;
    border-radius: 2px;
  }
  .pager a:hover {
    color: #333333 !important;
    background-image: -moz-linear-gradient(top,#eee,#ddd);
    background-image: -o-linear-gradient(top,#eee,#ddd);
    background-image: -webkit-gradient(linear,left top,left bottom,from(#eee),to(#ddd));
  }
  #myContBody .spBox,
  #myContBody li {
    border-bottom-color: #bbaa99 !important;
  }
  #myContBody .spMsg {color: #333 !important;}
  #SYS_page_items .editCheckbox {height: 58px !important;}
  /* -------- マイページ マイリスト -------- */
  .mylistVideo {
    margin-left: 120px !important;
  }
  .mylistVideo>h4 {
    width: 435px !important;
  }
  .mylistVideo dl {
    font-size: 90% !important;
    color: #555555 !important;
  }
  .mylistVideo .mylistTime {
    color: #333333 !important;
  }
  /* ここから連続再生  */
  .subButtons {
    position: absolute;
    top: 29px;
    right: 0;
  }
  .subButtons a {
    border: 1px solid black !important;
    background-image: -moz-linear-gradient(top,#5c5c62,#666 38%,#444 42%,#222226) !important;
    background-image: -o-linear-gradient(top,#5c5c62,#666 38%,#444 42%,#222226) !important;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#5c5c62),color-stop(0.38,#666),color-stop(0.42,#444),to(#222226)) !important;
    padding: 0 5px !important;
    color: white !important;
    font-size: 90% !important;
  }
  .subButtons a:hover {
    text-decoration: none !important;
    color: #ddd !important;
  }
  /* 宣伝・削除ボタンのデザイン調整 */
  .editBtnAd,
  .editBtnDel {
    background-image: none !important;
    background-image: -moz-linear-gradient(top,#f7f7f7,#f3f3f3 55%,#e3e3e3 56%,#ddd) !important;
    background-image: -o-linear-gradient(top,#f7f7f7,#f3f3f3 55%,#e3e3e3 56%,#ddd) !important;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#f7f7f7),color-stop(0.55,#f3f3f3),color-stop(0.56,#e3e3e3),to(#ddd)) !important;
    background-position: 0 0 !important;
    border: 1px solid #aaa !important;
    border-radius: 3px;
    height: 19px !important;
    width: 60px !important;
  }
  #myContBody ul.myContList li:hover .editBtnAd,
  #myContBody ul.myContList li:hover .editBtnDel {
    background-image: -moz-linear-gradient(top,#fff,#f7faff 10%,#eee 55%,#dde 56%,#dee 90%,#cde) !important;
    background-image: -o-linear-gradient(top,#fff,#f7faff 10%,#eee 55%,#dde 56%,#dee 90%,#cde) !important;
    background-image: -webkit-gradient(linear,left top,left bottm,from(#fff),color-stop(0.1,#f7faff),color-stop(0.55,#eee),color-stop(0.56,#dde),color-stop(0.9,#dee),to(#cde)) !important;
  }
  /* -------- サムネイル調整 -------- */
  .videoTime {
    bottom: 0 !important;
    right: 0 !important;
  }
  .repThumb {
    width: 78px !important;
  }
  .mypageThumb {
    padding: 0 !important;
    border-radius: 2px;
    background: #eee;
    height: auto !important;
    width: 78px !important;
    height: 60px !important;
  }
  .mypageThumb[href^="http://seiga.nicovideo.jp/"] {
    background: #444;
  }
  .mypageThumb img {
    margin: 0 !important;
    max-width: 78px;
    max-height: 60px;
    width: auto !important;
    height: auto !important;
  }
  .mypageThumb img[src="http://uni.res.nimg.jp/img/_.gif"] {
    width: 78px !important;
    height: 60px !important;
  }
  /* ホバー時にサムネイル拡大 */
  .mypageThumb:hover {
    margin-left: -14px !important;
    margin-top: -17px !important;
    margin-bottom: -23px !important;
    width: 130px !important;
    height: 100px !important;
    z-index: 10;
  }
  .repThumb .mypageThumb:hover {
    margin-left: -44px !important;
  }
  .mypageThumb:hover img {
    max-width: 130px !important;
    max-height: 100px !important;
  }
}
/* -------- マイページ マイリスト -------- */
@-moz-document url-prefix("http://www.nicovideo.jp/my/mylist"){
  /* マイリストコメント */
  .myListCommentT,
  .myListCommentB,
  .myListCommentL,
  .myListCommentR {
    background-image: none !important;
    width: auto !important;
    background-color: transparent !important;
    padding: 0 !important;
  }
  .myListCommentT {
    border: 1px solid #b9cdb4 !important;
    border-bottom: 1px solid #c7d5dd !important;
    border-radius: 5px;
    padding: 5px !important;
  }
  .comment p {
    top: 0 !important;
  }
}
/* -------- 他人のユーザーページ 左メニュー -------- */
@-moz-document url-prefix("http://www.nicovideo.jp/user"){
  #myNavWrap dt.active {
    background-color: #cccccc !important;
  }
}

/* ======== 動画トップ ======== */
@-moz-document url-prefix("http://www.nicovideo.jp/video_top"){
  .bg_g2 {
    background-image: none !important;
    background-image: -moz-linear-gradient(top,#5c5c62,#666 38%,#444 42%,#222226 98%,#888) !important;
    background-image: -o-linear-gradient(top,#5c5c62,#666 38%,#444 42%,#222226 98%,#888) !important;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#5c5c62),color-stop(0.38,#666),color-stop(0.42,#444),color-stop(0.98,#222226),to(#888)) !important;
    border: 2px solid #222;
    border-top: 0;
    border-radius:0 0 5px 5px;
  }
  .thumb_col_4 span[style="color: rgb(204, 0, 0);"] {display: none !important;}
  .dot_2 {display: none;}
  .g2_list a.open {border: 1px solid black !important;}
  #channel1 {border-top: 1px dotted gray; padding-top: 7px !Important;}
  /*.content_624>div:nth-child(3){display: none;}*/
  .content_624>div:nth-child(1){border-bottom: 2px dotted #aaaaaa; padding-bottom: 8px !important;}

  /* ======== 右メニューの変更 - 画像は旧版(9)より ======== */
  /* -------- 広告領域非表示 -------- */
  .content_360>div.mb8p4:nth-child(1) {display: none;}
  /* -------- メンテナンス情報以下 -------- */
  .content_360>div:nth-child(2) .frm_a_title{
    border: 2px solid black !important;
    background-image: url("http://nine.nicovideo.jp/img/index/top/right_title.png") !important;
    width: 344px !important;
    margin: 0 2px !important;
    background-position: 0 -45px !important;
    height: 24px !Important;
  }
  /* -------- お知らせ -------- */
  .content_360>div:nth-child(2) p:first-child .frm_a_title{
    background-position: 0 0 !important;
    height: 44px !Important;
  }
  .content_360>div:nth-child(2) .frm_a_bg {
    background-image: none !important;
    margin: 0 2px !important;
    padding: 0 12px !important;
    border: 2px solid #111;
    border-top: 0;
  }
  /* -------- 右メニューフッター非表示 -------- */
  .content_360>div:nth-child(2) img[src="http://res.nimg.jp/img/index/frm/a_btm.png"] {
    display: none;
  }

  /* ======== 流行のキーワード ======== */
  table#keyword_with_video {margin-bottom: 6px !important;}
  .trend_2 {border-top: 1px dotted gray; padding-top: 5px !important;}
  .trend_2 a div,
  .trend_2 a
  {
    background-image: none !important;
    padding: 0 !important;
  }
  .trend_2 a {
    background-image: -moz-linear-gradient(top,#f7f7f7,#dddddd) !important;
    background-image: -o-linear-gradient(top,#f7f7f7,#dddddd) !important;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#f7f7f7),to(#dddddd)) !important;
    border: 1px solid #999999;
    border-radius: 2px;
    font-weight: bold !important;
    color: #596979 !important;
  }
  .trend_2 a {margin: 0 2px; padding: 3px 4px !important; font-size: 70% !important;}
  .trend_2 a:hover {
    background-image: none !important;
    background-color: #495969 !important;
    color: #fff !important;
  }

  /* ======== カテゴリページ ニコニコチャンネルを下に ======== */
  #channel1 {
    margin-top: 760px !important;
    margin-bottom: -1060px !important;
  }
  #channel1~p.mb8p4.font12 {
    padding-bottom: 340px !important;
  }
}


/* ======== 以下インナースクロールから流用 ======== */
@-moz-document
url-prefix("http://www.nicovideo.jp/my/"),
url-prefix("http://www.nicovideo.jp/user/") {
/* Scroll my-mylist content */
  #SYS_page_items,
  #SYS_THREADS,
  .myContList {
    padding-top: 5px !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
  }
  #myContBody {
    padding-top: 10px !important;
  }
  .mylistFormWrap {
    padding-bottom: 0 !important;
  }
}

@-moz-document url-prefix("http://www.nicovideo.jp/my/mylist") {
  /* -------- マイリストの表示確認・編集・削除をヘッダーに統合 -------- */
  .editFormWrap {
    margin-top: -38px !important;
    margin-right: -10px !important;
    margin-left:292px !important;
    margin-bottom: 15px !important;
  }
  .editMenuWrap {
    border: 0 !important; padding-top: .3em !important;
  }
  .mylistType { /* 公開マイリスト／非公開マイリストを非表示 */
    display: none;
  }
  /* ↑から「マイリストの編集」ページ用に元の位置に補正*/
  #SYS_box_group_edit {
    margin-top: 38px !important;
    margin-left: -292px !important;
  }
  /* ======== マイリストコントロール ======== */
  .spBox {
    margin: -10px -20px 0 !important;
    padding: 0 10px !important;
    background: #eee;
    border-bottom: 1px dotted #aaa !important;
    position: relative !important;
  }
  /* -------- マイリストのソート -------- */
  .sortForm {
    margin: 0 0 5px !important;
    padding-top: 8px !important;
  }
  .sortForm>select {
    margin: 0 !important;
    position: absolute !important;
    bottom: 5px;
    right: 8px;
  }
  .itemNum {
    margin-right: 5px !important;
  }
  .SYS_box_filter {
    margin: 0 !important;
  }
  .SYS_box_filter input,
  .SYS_box_filter label {
    margin: 0 !important;
  }
  /* -------- マイリストの移動・コピー・削除 -------- */
  #SYS_box_check_editor {
    margin: 5px 0 !important;
   }
  #SYS_box_check_editor select:nth-child(2) {
    width: 17.2em !important;
  }
  /* 「チェックした項目を」の画像を非表示 */
  #SYS_box_check_editor .formTxt1,
  #SYS_box_check_editor .formTxt3 {
    display: none;
  }
  #SYS_box_check_editor>input {
    -moz-appearance: none !important;
    margin: 0 1px !important;
    width: 48px !important;
    background-image: -moz-linear-gradient(top,#F7F7F7,#F3F3F3 55%,#e3e3e3 56%,#ddd 97%,#bbb) !important;
    background-image: -o-linear-gradient(top,#F7F7F7,#F3F3F3 55%,#e3e3e3 56%,#ddd 97%,#bbb) !important;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#F7F7F7),color-stop(0.55,#F3F3F3),color-stop(0.56,#e3e3e3),color-stop(0.97,#ddd),to(#bbb)) !important;
    background-position: 0 0 !important;
    border: 1px solid #777 !important;
    border-top-color: #ccc !important;
    border-left-color: #ccc !important;
    border-radius: 2px;
    font-size: 13px !important;
  }
  #SYS_box_check_editor>input:hover {
    background-image: -moz-linear-gradient(top,#F7F7F7,#F3F3F3 55%,#e3e3e3 56%,#eee 97%,#bbb) !important;
    background-image: -o-linear-gradient(top,#F7F7F7,#F3F3F3 55%,#e3e3e3 56%,#eee 97%,#bbb) !important;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#F7F7F7),color-stop(0.55,#F3F3F3),color-stop(0.56,#e3e3e3),color-stop(0.97,#eee),to(#bbb)) !important;
  }
  #SYS_box_check_editor>input:active {
    background-image: -moz-linear-gradient(top,#F7F7F7,#F3F3F3 55%,#e3e3e3 56%,#eee) !important;
    background-image: -o-linear-gradient(top,#F7F7F7,#F3F3F3 55%,#e3e3e3 56%,#eee) !important;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#F7F7F7),color-stop(0.55,#F3F3F3),color-stop(0.56,#e3e3e3),to(0.97,#eee)) !important;
    border-top-color: #777 !important;
    border-left-color: #777 !important;
    border-bottom-color: #ccc !important;
    border-right-color: #ccc !important;
    box-shadow: inset 0 0 1px rgba(0,0,0,.2);
  }
  /* 登録件数が500件以上になったら～を非表示 */
  .spMsg {
    display: none;
  }

  /* マイリストコントロール下部を左右入れ替えたい場合はコメントアウトを外す */
  /*
  .sortForm>select {
    left: 8px;
  }
  #SYS_box_check_editor {
     text-align: right !important;
  }
  */
}
